Remove the -disable-cfi option.
[oota-llvm.git] / test / CodeGen / SPARC / basictest.ll
1 ; RUN: llc < %s -march=sparc | FileCheck %s
2
3 define i32 @test0(i32 %X) {
4         %tmp.1 = add i32 %X, 1
5         ret i32 %tmp.1
6 ; CHECK-LABEL: test0:
7 ; CHECK: add %o0, 1, %o0
8 }
9
10
11 ;; xnor tests.
12 define i32 @test1(i32 %X, i32 %Y) {
13         %A = xor i32 %X, %Y
14         %B = xor i32 %A, -1
15         ret i32 %B
16 ; CHECK-LABEL: test1:
17 ; CHECK: xnor %o0, %o1, %o0
18 }
19
20 define i32 @test2(i32 %X, i32 %Y) {
21         %A = xor i32 %X, -1
22         %B = xor i32 %A, %Y
23         ret i32 %B
24 ; CHECK-LABEL: test2:
25 ; CHECK: xnor %o0, %o1, %o0
26 }
27
28 ; CHECK-LABEL: store_zero:
29 ; CHECK: st   %g0, [%o0]
30 ; CHECK: st   %g0, [%o1+4]
31 define i32 @store_zero(i32* %a, i32* %b) {
32 entry:
33   store i32 0, i32* %a, align 4
34   %0 = getelementptr inbounds i32* %b, i32 1
35   store i32 0, i32* %0, align 4
36   ret i32 0
37 }
38