Daniel Sanders | 8008de5 | 2015-10-15 14:34:23 +0000 | [diff] [blame] | 1 | ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static -mips16-constant-islands < %s | FileCheck %s -check-prefix=constisle |
Reed Kotler | d3b28eb | 2013-11-24 02:53:09 +0000 | [diff] [blame] | 2 | |
| 3 | @i = common global i32 0, align 4 |
| 4 | @b = common global i32 0, align 4 |
| 5 | @l = common global i32 0, align 4 |
| 6 | |
| 7 | ; Function Attrs: nounwind |
| 8 | define void @foo() #0 { |
| 9 | entry: |
| 10 | store i32 305419896, i32* @i, align 4 |
David Blaikie | a79ac14 | 2015-02-27 21:17:42 +0000 | [diff] [blame] | 11 | %0 = load i32, i32* @b, align 4 |
Reed Kotler | d3b28eb | 2013-11-24 02:53:09 +0000 | [diff] [blame] | 12 | %tobool = icmp ne i32 %0, 0 |
| 13 | br i1 %tobool, label %if.then, label %if.else |
| 14 | |
| 15 | if.then: ; preds = %entry |
| 16 | store i32 10, i32* @b, align 4 |
| 17 | br label %if.end |
| 18 | |
| 19 | if.else: ; preds = %entry |
| 20 | store i32 20, i32* @b, align 4 |
| 21 | br label %if.end |
| 22 | |
| 23 | if.end: ; preds = %if.else, %if.then |
| 24 | call void asm sideeffect ".space 100000", ""() #1, !srcloc !1 |
| 25 | store i32 305419896, i32* @l, align 4 |
| 26 | ret void |
| 27 | ; constisle: $CPI0_1: |
| 28 | ; constisle .4byte 305419896 # 0x12345678 |
| 29 | ; constisle #APP |
| 30 | ; constisle .space 100000 |
| 31 | ; constisle #NO_APP |
| 32 | ; constisle $CPI0_0: |
| 33 | ; constisle .4byte 305419896 # 0x12345678 |
| 34 | } |
| 35 | |
| 36 | attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } |
| 37 | attributes #1 = { nounwind } |
| 38 | |
Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 39 | !1 = !{i32 103} |