Simon Atanasyan | 970f686 | 2017-12-29 19:18:24 +0000 | [diff] [blame] | 1 | ; Check handling of the constraint `c`. |
2 | ; RUN: llc -march=mips -target-abi o32 < %s | FileCheck %s | ||||
3 | |||||
4 | define i32 @main() #0 { | ||||
5 | entry: | ||||
6 | %jmp = alloca i32, align 4 | ||||
7 | store i32 0, i32* %jmp, align 4 | ||||
8 | %0 = load i32, i32* %jmp, align 4 | ||||
9 | call void asm sideeffect "jr $0", "c,~{$1}"(i32 %0) #1 | ||||
10 | |||||
11 | ; CHECK: addiu $25, $zero, 0 | ||||
12 | ; CHECK: jr $25 | ||||
13 | |||||
14 | ret i32 0 | ||||
15 | } | ||||
16 | |||||
17 | attributes #0 = { noinline nounwind } | ||||
18 | attributes #1 = { nounwind } |