llvm.org GIT mirror llvm / 93c2900
Merging r314183: ------------------------------------------------------------------------ r314183 | dylanmckay | 2017-09-26 15:07:54 +1300 (Tue, 26 Sep 2017) | 3 lines [AVR] Fix the build after setting alignment to 1 in r314179 Changing all types to be byte-aligned broke a small number of tests. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_50@314382 91177308-0d34-0410-b5e6-96231b3b80d8 Dylan McKay 3 years ago
3 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
3030 define i8 @calli8_stack() {
3131 ; CHECK-LABEL: calli8_stack:
3232 ; CHECK: ldi [[REG1:r[0-9]+]], 10
33 ; CHECK: push [[REG1]]
34 ; CHECK: ldi [[REG1]], 11
33 ; CHECK: ldi [[REG2:r[0-9]+]], 11
34 ; CHECK: push [[REG2]]
3535 ; CHECK: push [[REG1]]
3636 ; CHECK: call foo8_3
3737 %result1 = call i8 @foo8_3(i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11)
141141 ; CHECK-LABEL: testcallprologue:
142142 ; CHECK: push r28
143143 ; CHECK: push r29
144 ; CHECK: sbiw r28, 28
144 ; CHECK: sbiw r28, 27
145145 ; CHECK: ldi [[REG1:r[0-9]+]], 88
146146 ; CHECK: std Y+9, [[REG1]]
147147 ; CHECK: ldi [[REG1:r[0-9]+]], 11
3232
3333 define void @array8_store() {
3434 ; CHECK-LABEL: array8_store:
35 ; CHECK: ldi [[REG1:r[0-9]+]], 3
36 ; CHECK: sts char.array+2, [[REG1]]
37 ; CHECK: ldi [[REG3:r[0-9]+]], 1
3538 ; CHECK: ldi [[REG2:r[0-9]+]], 2
3639 ; CHECK: sts char.array+1, [[REG2]]
37 ; CHECK: ldi [[REG1:r[0-9]+]], 1
38 ; CHECK: sts char.array, [[REG1]]
39 ; CHECK: ldi [[REG:r[0-9]+]], 3
40 ; CHECK: sts char.array+2, [[REG]]
40 ; CHECK: sts char.array, [[REG3]]
4141 store i8 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @char.array, i32 0, i64 0)
4242 store i8 2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @char.array, i32 0, i64 1)
4343 store i8 3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @char.array, i32 0, i64 2)
2626
2727 define i16 @varargs2(i8* nocapture %x, ...) {
2828 ; CHECK-LABEL: varargs2:
29 ; CHECK: ld r24, Z
30 ; CHECK: ldd r25, Z+1
29 ; CHECK: ldd r24, [[REG:X|Y|Z]]+{{[0-9]+}}
30 ; CHECK: ldd r25, [[REG]]+{{[0-9]+}}
3131 %ap = alloca i8*
3232 %ap1 = bitcast i8** %ap to i8*
3333 call void @llvm.va_start(i8* %ap1)