tests/languages/asmatmel/constant_feature.test
raw| 1 | OUT PORTD,x |
| 2 | ldi r17,PD06 |
| 3 | ldi r19,(1<<DDB31) |
| 4 | ldi r19,(1<<DDA30) |
| 5 | ldi r19,(1<<DDL10) |
| 6 | ldi r19,(1<<DDZ05) |
| 7 | ldi r19,(1<<PD7) |
| 8 | |
| 9 | ---------------------------------------------------- |
| 10 | |
| 11 | [ |
| 12 | ["op-code", "OUT"], |
| 13 | ["constant", "PORTD"], |
| 14 | ["punctuation", ","], |
| 15 | ["register", "x"], |
| 16 | |
| 17 | ["op-code", "ldi"], |
| 18 | ["r-register", "r17"], |
| 19 | ["punctuation", ","], |
| 20 | ["constant", "PD06"], |
| 21 | |
| 22 | ["op-code", "ldi"], |
| 23 | ["r-register", "r19"], |
| 24 | ["punctuation", ","], |
| 25 | ["punctuation", "("], |
| 26 | ["decimal-number", "1"], |
| 27 | ["operator", "<<"], |
| 28 | ["constant", "DDB31"], |
| 29 | ["punctuation", ")"], |
| 30 | |
| 31 | ["op-code", "ldi"], |
| 32 | ["r-register", "r19"], |
| 33 | ["punctuation", ","], |
| 34 | ["punctuation", "("], |
| 35 | ["decimal-number", "1"], |
| 36 | ["operator", "<<"], |
| 37 | ["constant", "DDA30"], |
| 38 | ["punctuation", ")"], |
| 39 | |
| 40 | ["op-code", "ldi"], |
| 41 | ["r-register", "r19"], |
| 42 | ["punctuation", ","], |
| 43 | ["punctuation", "("], |
| 44 | ["decimal-number", "1"], |
| 45 | ["operator", "<<"], |
| 46 | ["constant", "DDL10"], |
| 47 | ["punctuation", ")"], |
| 48 | |
| 49 | ["op-code", "ldi"], |
| 50 | ["r-register", "r19"], |
| 51 | ["punctuation", ","], |
| 52 | ["punctuation", "("], |
| 53 | ["decimal-number", "1"], |
| 54 | ["operator", "<<"], |
| 55 | ["constant", "DDZ05"], |
| 56 | ["punctuation", ")"], |
| 57 | |
| 58 | ["op-code", "ldi"], |
| 59 | ["r-register", "r19"], |
| 60 | ["punctuation", ","], |
| 61 | ["punctuation", "("], |
| 62 | ["decimal-number", "1"], |
| 63 | ["operator", "<<"], |
| 64 | ["constant", "PD7"], |
| 65 | ["punctuation", ")"] |
| 66 | ] |
| 67 | |
| 68 | ---------------------------------------------------- |
| 69 | |
| 70 | Check for constants |