1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
2 ; RUN: llc < %s -o - | FileCheck %s
4 target triple = "arm64-none-linux-gnu"
6 define void @test_constraints_Uci_w(i32 %a) {
7 ; CHECK-LABEL: test_constraints_Uci_w:
9 ; CHECK-NEXT: mov w8, w0
11 ; CHECK-NEXT: add x0, x0, x8
12 ; CHECK-NEXT: //NO_APP
14 call void asm sideeffect "add x0, x0, $0", "@3Uci,~{x0}"(i32 %a)
18 ; As test_constraints_Uci_w but ensures non-legal types are also covered.
19 define void @test_constraints_Uci_w_i8(i8 %a) {
20 ; CHECK-LABEL: test_constraints_Uci_w_i8:
22 ; CHECK-NEXT: mov w8, w0
24 ; CHECK-NEXT: add x0, x0, x8
25 ; CHECK-NEXT: //NO_APP
27 call void asm sideeffect "add x0, x0, $0", "@3Uci,~{x0}"(i8 %a)
31 define void @test_constraints_Uci_x(i64 %a) {
32 ; CHECK-LABEL: test_constraints_Uci_x:
34 ; CHECK-NEXT: mov x8, x0
36 ; CHECK-NEXT: add x0, x0, x8
37 ; CHECK-NEXT: //NO_APP
39 call void asm sideeffect "add x0, x0, $0", "@3Uci,~{x0}"(i64 %a)
43 define void @test_constraint_Ucj_w(i32 %a) {
44 ; CHECK-LABEL: test_constraint_Ucj_w:
46 ; CHECK-NEXT: mov w12, w0
48 ; CHECK-NEXT: add x0, x0, x12
49 ; CHECK-NEXT: //NO_APP
51 call void asm sideeffect "add x0, x0, $0", "@3Ucj,~{x0}"(i32 %a)
55 ; As test_constraints_Ucj_w but ensures non-legal types are also covered.
56 define void @test_constraint_Ucj_w_i8(i8 %a) {
57 ; CHECK-LABEL: test_constraint_Ucj_w_i8:
59 ; CHECK-NEXT: mov w12, w0
61 ; CHECK-NEXT: add x0, x0, x12
62 ; CHECK-NEXT: //NO_APP
64 call void asm sideeffect "add x0, x0, $0", "@3Ucj,~{x0}"(i8 %a)
68 define void @test_constraint_Ucj_x(i64 %a) {
69 ; CHECK-LABEL: test_constraint_Ucj_x:
71 ; CHECK-NEXT: mov x12, x0
73 ; CHECK-NEXT: add x0, x0, x12
74 ; CHECK-NEXT: //NO_APP
76 call void asm sideeffect "add x0, x0, $0", "@3Ucj,~{x0}"(i64 %a)