blob: 5a5d7672e956422a3082d9cc1d0b119a0f44feda [file] [log] [blame]
Simon Atanasyan970f6862017-12-29 19:18:24 +00001; Check handling of the constraint `c`.
2; RUN: llc -march=mips -target-abi o32 < %s | FileCheck %s
3
4define i32 @main() #0 {
5entry:
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
17attributes #0 = { noinline nounwind }
18attributes #1 = { nounwind }