Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/Mips/lcb4a.ll @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 60c9769439b8 |
children | 7d135dc70f03 |
comparison
equal
deleted
inserted
replaced
84:f3e34b893a5f | 95:afa8332a0e37 |
---|---|
1 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=ci | 1 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=ci |
2 | 2 |
3 @i = global i32 0, align 4 | 3 @i = global i32 0, align 4 |
4 @j = common global i32 0, align 4 | 4 @j = common global i32 0, align 4 |
5 @k = common global i32 0, align 4 | 5 @k = common global i32 0, align 4 |
6 | 6 |
7 ; Function Attrs: nounwind optsize | 7 ; Function Attrs: nounwind optsize |
8 define i32 @foo() #0 { | 8 define i32 @foo() #0 { |
9 entry: | 9 entry: |
10 %0 = load i32* @i, align 4, !tbaa !1 | 10 %0 = load i32, i32* @i, align 4, !tbaa !1 |
11 %cmp = icmp eq i32 %0, 0 | 11 %cmp = icmp eq i32 %0, 0 |
12 br i1 %cmp, label %if.then, label %if.else | 12 br i1 %cmp, label %if.then, label %if.else |
13 | 13 |
14 if.then: ; preds = %entry | 14 if.then: ; preds = %entry |
15 tail call void asm sideeffect ".space 1000", ""() #1, !srcloc !5 | 15 tail call void asm sideeffect ".space 1000", ""() #1, !srcloc !5 |
30 | 30 |
31 | 31 |
32 ; Function Attrs: nounwind optsize | 32 ; Function Attrs: nounwind optsize |
33 define i32 @goo() #0 { | 33 define i32 @goo() #0 { |
34 entry: | 34 entry: |
35 %0 = load i32* @i, align 4, !tbaa !1 | 35 %0 = load i32, i32* @i, align 4, !tbaa !1 |
36 %cmp = icmp eq i32 %0, 0 | 36 %cmp = icmp eq i32 %0, 0 |
37 br i1 %cmp, label %if.then, label %if.else | 37 br i1 %cmp, label %if.then, label %if.else |
38 | 38 |
39 if.then: ; preds = %entry | 39 if.then: ; preds = %entry |
40 tail call void asm sideeffect ".space 1000000", ""() #1, !srcloc !7 | 40 tail call void asm sideeffect ".space 1000000", ""() #1, !srcloc !7 |