Daniel Sanders | 8008de5 | 2015-10-15 14:34:23 +0000 | [diff] [blame] | 1 | ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -relocation-model=pic -mips16-constant-islands=false -O3 < %s | FileCheck %s -check-prefix=16 |
Reed Kotler | e47873a | 2012-10-26 03:09:34 +0000 | [diff] [blame] | 2 | |
| 3 | @.str = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1 |
| 4 | |
| 5 | define i32 @main() nounwind { |
| 6 | entry: |
David Blaikie | 23af648 | 2015-04-16 23:24:18 +0000 | [diff] [blame] | 7 | %call = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32 1075344593) nounwind |
Reed Kotler | de64774 | 2013-10-12 02:19:08 +0000 | [diff] [blame] | 8 | ; 16: lw ${{[0-9]+}}, 1f |
| 9 | ; 16: b 2f |
| 10 | ; 16: .align 2 |
| 11 | ; 16: 1: .word 1075344593 |
| 12 | ; 16: 2: |
| 13 | |
David Blaikie | 23af648 | 2015-04-16 23:24:18 +0000 | [diff] [blame] | 14 | %call1 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32 -1075344593) nounwind |
Reed Kotler | de64774 | 2013-10-12 02:19:08 +0000 | [diff] [blame] | 15 | |
| 16 | ; 16: lw ${{[0-9]+}}, 1f |
| 17 | ; 16: b 2f |
| 18 | ; 16: .align 2 |
| 19 | ; 16: 1: .word -1075344593 |
| 20 | ; 16: 2: |
Reed Kotler | e47873a | 2012-10-26 03:09:34 +0000 | [diff] [blame] | 21 | ret i32 0 |
| 22 | } |
| 23 | |
| 24 | declare i32 @printf(i8* nocapture, ...) nounwind |