brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.7 KiB · 0173f92 Raw
70 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 42; RUN: llc -global-isel -mtriple=aarch64-linux-gnu -O0 -stop-after=irtranslator < %s | FileCheck %s3 4 5define <2 x i1> @call_icmp_samesign_vector(<2 x i32> %a, <2 x i32> %b) {6  ; CHECK-LABEL: name: call_icmp_samesign_vector7  ; CHECK: bb.1.entry:8  ; CHECK-NEXT:   liveins: $d0, $d19  ; CHECK-NEXT: {{  $}}10  ; CHECK-NEXT:   [[COPY:%[0-9]+]]:_(<2 x s32>) = COPY $d011  ; CHECK-NEXT:   [[COPY1:%[0-9]+]]:_(<2 x s32>) = COPY $d112  ; CHECK-NEXT:   %2:_(<2 x s1>) = samesign G_ICMP intpred(ult), [[COPY]](<2 x s32>), [[COPY1]]13  ; CHECK-NEXT:   [[ANYEXT:%[0-9]+]]:_(<2 x s32>) = G_ANYEXT %2(<2 x s1>)14  ; CHECK-NEXT:   $d0 = COPY [[ANYEXT]](<2 x s32>)15  ; CHECK-NEXT:   RET_ReallyLR implicit $d016entry:17  %result = icmp samesign ult <2 x i32> %a, %b18  ret <2 x i1> %result19}20 21define <2 x i1> @call_icmp_vector(<2 x i32> %a, <2 x i32> %b) {22  ; CHECK-LABEL: name: call_icmp_vector23  ; CHECK: bb.1.entry:24  ; CHECK-NEXT:   liveins: $d0, $d125  ; CHECK-NEXT: {{  $}}26  ; CHECK-NEXT:   [[COPY:%[0-9]+]]:_(<2 x s32>) = COPY $d027  ; CHECK-NEXT:   [[COPY1:%[0-9]+]]:_(<2 x s32>) = COPY $d128  ; CHECK-NEXT:   [[ICMP:%[0-9]+]]:_(<2 x s1>) = G_ICMP intpred(ult), [[COPY]](<2 x s32>), [[COPY1]]29  ; CHECK-NEXT:   [[ANYEXT:%[0-9]+]]:_(<2 x s32>) = G_ANYEXT [[ICMP]](<2 x s1>)30  ; CHECK-NEXT:   $d0 = COPY [[ANYEXT]](<2 x s32>)31  ; CHECK-NEXT:   RET_ReallyLR implicit $d032entry:33  %result = icmp ult <2 x i32> %a, %b34  ret <2 x i1> %result35}36 37define i1 @call_icmp(i32 %a) {38  ; CHECK-LABEL: name: call_icmp39  ; CHECK: bb.1.entry:40  ; CHECK-NEXT:   liveins: $w041  ; CHECK-NEXT: {{  $}}42  ; CHECK-NEXT:   [[COPY:%[0-9]+]]:_(s32) = COPY $w043  ; CHECK-NEXT:   [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 344  ; CHECK-NEXT:   [[ICMP:%[0-9]+]]:_(s1) = G_ICMP intpred(ult), [[COPY]](s32), [[C]]45  ; CHECK-NEXT:   [[ZEXT:%[0-9]+]]:_(s8) = G_ZEXT [[ICMP]](s1)46  ; CHECK-NEXT:   [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[ZEXT]](s8)47  ; CHECK-NEXT:   $w0 = COPY [[ANYEXT]](s32)48  ; CHECK-NEXT:   RET_ReallyLR implicit $w049entry:50  %result = icmp ult i32 %a, 351  ret i1 %result52}53 54define i1 @call_icmp_samesign(i32 %a) {55  ; CHECK-LABEL: name: call_icmp_samesign56  ; CHECK: bb.1.entry:57  ; CHECK-NEXT:   liveins: $w058  ; CHECK-NEXT: {{  $}}59  ; CHECK-NEXT:   [[COPY:%[0-9]+]]:_(s32) = COPY $w060  ; CHECK-NEXT:   [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 361  ; CHECK-NEXT:   %2:_(s1) = samesign G_ICMP intpred(ult), [[COPY]](s32), [[C]]62  ; CHECK-NEXT:   [[ZEXT:%[0-9]+]]:_(s8) = G_ZEXT %2(s1)63  ; CHECK-NEXT:   [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[ZEXT]](s8)64  ; CHECK-NEXT:   $w0 = COPY [[ANYEXT]](s32)65  ; CHECK-NEXT:   RET_ReallyLR implicit $w066entry:67  %result = icmp samesign ult i32 %a, 368  ret i1 %result69}70