1 ; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
2 ; RUN: llc -O0 -mtriple=aarch64-linux-gnu -global-isel -stop-after=irtranslator %s -o - | FileCheck %s
4 define void @scmp_i32(i32 %arg1, i32 %arg2) {
5 ; CHECK-LABEL: name: scmp_i32
6 ; CHECK: bb.1 (%ir-block.0):
7 ; CHECK-NEXT: liveins: $w0, $w1
9 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $w0
10 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $w1
11 ; CHECK-NEXT: [[SCMP:%[0-9]+]]:_(s4) = G_SCMP [[COPY]](s32), [[COPY1]]
12 ; CHECK-NEXT: RET_ReallyLR
13 %res4 = call i4 @llvm.scmp.i4.i32(i32 %arg1, i32 %arg2)
17 define void @scmp_4_32i(<4 x i32> %arg1, <4 x i32> %arg2) {
18 ; CHECK-LABEL: name: scmp_4_32i
19 ; CHECK: bb.1 (%ir-block.0):
20 ; CHECK-NEXT: liveins: $q0, $q1
22 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(<4 x s32>) = COPY $q0
23 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(<4 x s32>) = COPY $q1
24 ; CHECK-NEXT: [[SCMP:%[0-9]+]]:_(<4 x s32>) = G_SCMP [[COPY]](<4 x s32>), [[COPY1]]
25 ; CHECK-NEXT: RET_ReallyLR
26 %res4 = call <4 x i32> @llvm.scmp.v4i32.i32(<4 x i32> %arg1, <4 x i32> %arg2)
30 define void @ucmp_i32(i32 %arg1, i32 %arg2) {
31 ; CHECK-LABEL: name: ucmp_i32
32 ; CHECK: bb.1 (%ir-block.0):
33 ; CHECK-NEXT: liveins: $w0, $w1
35 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $w0
36 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $w1
37 ; CHECK-NEXT: [[UCMP:%[0-9]+]]:_(s4) = G_UCMP [[COPY]](s32), [[COPY1]]
38 ; CHECK-NEXT: RET_ReallyLR
39 %res4 = call i4 @llvm.ucmp.i4.i32(i32 %arg1, i32 %arg2)
43 define void @ucmp_4_32i(<4 x i32> %arg1, <4 x i32> %arg2) {
44 ; CHECK-LABEL: name: ucmp_4_32i
45 ; CHECK: bb.1 (%ir-block.0):
46 ; CHECK-NEXT: liveins: $q0, $q1
48 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(<4 x s32>) = COPY $q0
49 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(<4 x s32>) = COPY $q1
50 ; CHECK-NEXT: [[UCMP:%[0-9]+]]:_(<4 x s32>) = G_UCMP [[COPY]](<4 x s32>), [[COPY1]]
51 ; CHECK-NEXT: RET_ReallyLR
52 %res4 = call <4 x i32> @llvm.ucmp.v4i32.i32(<4 x i32> %arg1, <4 x i32> %arg2)