1 ; RUN: llc -verify-machineinstrs -o - %s -mtriple=arm64-apple-ios7.0 | FileCheck %s
6 define void @test_and(i32 %in32, i64 %in64) {
7 ; CHECK-LABEL: test_and:
9 %val0 = and i32 %in32, 2863311530
10 store volatile i32 %val0, ptr @var32
11 ; CHECK: and {{w[0-9]+}}, {{w[0-9]+}}, #0xaaaaaaaa
13 %val1 = and i32 %in32, 4293984240
14 store volatile i32 %val1, ptr @var32
15 ; CHECK: and {{w[0-9]+}}, {{w[0-9]+}}, #0xfff0fff0
17 %val2 = and i64 %in64, 9331882296111890817
18 store volatile i64 %val2, ptr @var64
19 ; CHECK: and {{x[0-9]+}}, {{x[0-9]+}}, #0x8181818181818181
21 %val3 = and i64 %in64, 18429855317404942275
22 store volatile i64 %val3, ptr @var64
23 ; CHECK: and {{x[0-9]+}}, {{x[0-9]+}}, #0xffc3ffc3ffc3ffc3
28 define void @test_orr(i32 %in32, i64 %in64) {
29 ; CHECK-LABEL: test_orr:
31 %val0 = or i32 %in32, 2863311530
32 store volatile i32 %val0, ptr @var32
33 ; CHECK: orr {{w[0-9]+}}, {{w[0-9]+}}, #0xaaaaaaaa
35 %val1 = or i32 %in32, 4293984240
36 store volatile i32 %val1, ptr @var32
37 ; CHECK: orr {{w[0-9]+}}, {{w[0-9]+}}, #0xfff0fff0
39 %val2 = or i64 %in64, 9331882296111890817
40 store volatile i64 %val2, ptr @var64
41 ; CHECK: orr {{x[0-9]+}}, {{x[0-9]+}}, #0x8181818181818181
43 %val3 = or i64 %in64, 18429855317404942275
44 store volatile i64 %val3, ptr @var64
45 ; CHECK: orr {{x[0-9]+}}, {{x[0-9]+}}, #0xffc3ffc3ffc3ffc3
50 define void @test_eor(i32 %in32, i64 %in64) {
51 ; CHECK-LABEL: test_eor:
53 %val0 = xor i32 %in32, 2863311530
54 store volatile i32 %val0, ptr @var32
55 ; CHECK: eor {{w[0-9]+}}, {{w[0-9]+}}, #0xaaaaaaaa
57 %val1 = xor i32 %in32, 4293984240
58 store volatile i32 %val1, ptr @var32
59 ; CHECK: eor {{w[0-9]+}}, {{w[0-9]+}}, #0xfff0fff0
61 %val2 = xor i64 %in64, 9331882296111890817
62 store volatile i64 %val2, ptr @var64
63 ; CHECK: eor {{x[0-9]+}}, {{x[0-9]+}}, #0x8181818181818181
65 %val3 = xor i64 %in64, 18429855317404942275
66 store volatile i64 %val3, ptr @var64
67 ; CHECK: eor {{x[0-9]+}}, {{x[0-9]+}}, #0xffc3ffc3ffc3ffc3
72 define void @test_mov(i32 %in32, i64 %in64) {
73 ; CHECK-LABEL: test_mov:
74 %val0 = add i32 %in32, 2863311530
75 store i32 %val0, ptr @var32
76 ; CHECK: mov {{w[0-9]+}}, #-1431655766
78 %val1 = add i64 %in64, 11068046444225730969
79 store i64 %val1, ptr @var64
80 ; CHECK: mov {{x[0-9]+}}, #-7378697629483820647