1 ; RUN: llc < %s -O0 -fast-isel-abort=1 -verify-machineinstrs -relocation-model=dynamic-no-pic -mtriple=armv7-apple-ios | FileCheck %s --check-prefix=ARM
2 ; RUN: llc < %s -O0 -fast-isel-abort=1 -verify-machineinstrs -relocation-model=dynamic-no-pic -mtriple=armv7-linux-gnueabi | FileCheck %s --check-prefix=ARM
3 ; RUN: llc < %s -O0 -fast-isel-abort=1 -verify-machineinstrs -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-ios | FileCheck %s --check-prefix=THUMB
5 ; Test add with non-legal types
7 define void @add_i1(i1 %a, i1 %b) nounwind ssp {
11 %a.addr = alloca i1, align 4
15 store i1 %0, i1* %a.addr, align 4
19 define void @add_i8(i8 %a, i8 %b) nounwind ssp {
23 %a.addr = alloca i8, align 4
27 store i8 %0, i8* %a.addr, align 4
31 define void @add_i16(i16 %a, i16 %b) nounwind ssp {
35 %a.addr = alloca i16, align 4
39 store i16 %0, i16* %a.addr, align 4
43 ; Test or with non-legal types
45 define void @or_i1(i1 %a, i1 %b) nounwind ssp {
49 %a.addr = alloca i1, align 4
53 store i1 %0, i1* %a.addr, align 4
57 define void @or_i8(i8 %a, i8 %b) nounwind ssp {
61 %a.addr = alloca i8, align 4
65 store i8 %0, i8* %a.addr, align 4
69 define void @or_i16(i16 %a, i16 %b) nounwind ssp {
73 %a.addr = alloca i16, align 4
77 store i16 %0, i16* %a.addr, align 4
81 ; Test sub with non-legal types
83 define void @sub_i1(i1 %a, i1 %b) nounwind ssp {
87 %a.addr = alloca i1, align 4
90 ; THUMB: subs r0, r0, r1
91 store i1 %0, i1* %a.addr, align 4
95 define void @sub_i8(i8 %a, i8 %b) nounwind ssp {
99 %a.addr = alloca i8, align 4
101 ; ARM: sub r0, r0, r1
102 ; THUMB: subs r0, r0, r1
103 store i8 %0, i8* %a.addr, align 4
107 define void @sub_i16(i16 %a, i16 %b) nounwind ssp {
111 %a.addr = alloca i16, align 4
113 ; ARM: sub r0, r0, r1
114 ; THUMB: subs r0, r0, r1
115 store i16 %0, i16* %a.addr, align 4