1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc %s -verify-machineinstrs -O0 -run-pass=legalizer -mtriple aarch64-unknown-unknown -o - | FileCheck %s
7 tracksRegLiveness: true
12 ; CHECK-LABEL: name: v2s64
13 ; CHECK: liveins: $q0, $q1
14 ; CHECK: [[COPY:%[0-9]+]]:_(<2 x s64>) = COPY $q0
15 ; CHECK: [[COPY1:%[0-9]+]]:_(<2 x s64>) = COPY $q1
16 ; CHECK: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 0
17 ; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x s64>) = G_BUILD_VECTOR [[C]](s64), [[C]](s64)
18 ; CHECK: [[ICMP:%[0-9]+]]:_(<2 x s64>) = G_ICMP intpred(sgt), [[COPY]](<2 x s64>), [[BUILD_VECTOR]]
19 ; CHECK: [[TRUNC:%[0-9]+]]:_(<2 x s1>) = G_TRUNC [[ICMP]](<2 x s64>)
20 ; CHECK: [[UV:%[0-9]+]]:_(s1), [[UV1:%[0-9]+]]:_(s1) = G_UNMERGE_VALUES [[TRUNC]](<2 x s1>)
21 ; CHECK: [[UV2:%[0-9]+]]:_(s64), [[UV3:%[0-9]+]]:_(s64) = G_UNMERGE_VALUES [[COPY1]](<2 x s64>)
22 ; CHECK: [[UV4:%[0-9]+]]:_(s64), [[UV5:%[0-9]+]]:_(s64) = G_UNMERGE_VALUES [[COPY]](<2 x s64>)
23 ; CHECK: [[SELECT:%[0-9]+]]:_(s64) = G_SELECT [[UV]](s1), [[UV2]], [[UV4]]
24 ; CHECK: [[SELECT1:%[0-9]+]]:_(s64) = G_SELECT [[UV1]](s1), [[UV3]], [[UV5]]
25 ; CHECK: [[BUILD_VECTOR1:%[0-9]+]]:_(<2 x s64>) = G_BUILD_VECTOR [[SELECT]](s64), [[SELECT1]](s64)
26 ; CHECK: $q0 = COPY [[BUILD_VECTOR1]](<2 x s64>)
27 ; CHECK: RET_ReallyLR implicit $q0
28 %0:_(<2 x s64>) = COPY $q0
29 %1:_(<2 x s64>) = COPY $q1
30 %3:_(s64) = G_CONSTANT i64 0
31 %2:_(<2 x s64>) = G_BUILD_VECTOR %3(s64), %3(s64)
32 %4:_(<2 x s1>) = G_ICMP intpred(sgt), %0(<2 x s64>), %2
33 %5:_(<2 x s64>) = G_SELECT %4(<2 x s1>), %1, %0
34 $q0 = COPY %5(<2 x s64>)
35 RET_ReallyLR implicit $q0
41 tracksRegLiveness: true
46 ; CHECK-LABEL: name: v2s32
47 ; CHECK: liveins: $d0, $d1
48 ; CHECK: [[COPY:%[0-9]+]]:_(<2 x s32>) = COPY $d0
49 ; CHECK: [[COPY1:%[0-9]+]]:_(<2 x s32>) = COPY $d1
50 ; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
51 ; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x s32>) = G_BUILD_VECTOR [[C]](s32), [[C]](s32)
52 ; CHECK: [[ICMP:%[0-9]+]]:_(<2 x s32>) = G_ICMP intpred(sgt), [[COPY]](<2 x s32>), [[BUILD_VECTOR]]
53 ; CHECK: [[TRUNC:%[0-9]+]]:_(<2 x s1>) = G_TRUNC [[ICMP]](<2 x s32>)
54 ; CHECK: [[UV:%[0-9]+]]:_(s1), [[UV1:%[0-9]+]]:_(s1) = G_UNMERGE_VALUES [[TRUNC]](<2 x s1>)
55 ; CHECK: [[UV2:%[0-9]+]]:_(s32), [[UV3:%[0-9]+]]:_(s32) = G_UNMERGE_VALUES [[COPY1]](<2 x s32>)
56 ; CHECK: [[UV4:%[0-9]+]]:_(s32), [[UV5:%[0-9]+]]:_(s32) = G_UNMERGE_VALUES [[COPY]](<2 x s32>)
57 ; CHECK: [[SELECT:%[0-9]+]]:_(s32) = G_SELECT [[UV]](s1), [[UV2]], [[UV4]]
58 ; CHECK: [[SELECT1:%[0-9]+]]:_(s32) = G_SELECT [[UV1]](s1), [[UV3]], [[UV5]]
59 ; CHECK: [[BUILD_VECTOR1:%[0-9]+]]:_(<2 x s32>) = G_BUILD_VECTOR [[SELECT]](s32), [[SELECT1]](s32)
60 ; CHECK: $d0 = COPY [[BUILD_VECTOR1]](<2 x s32>)
61 ; CHECK: RET_ReallyLR implicit $d0
62 %0:_(<2 x s32>) = COPY $d0
63 %1:_(<2 x s32>) = COPY $d1
64 %3:_(s32) = G_CONSTANT i32 0
65 %2:_(<2 x s32>) = G_BUILD_VECTOR %3(s32), %3(s32)
66 %4:_(<2 x s1>) = G_ICMP intpred(sgt), %0(<2 x s32>), %2
67 %5:_(<2 x s32>) = G_SELECT %4(<2 x s1>), %1, %0
68 $d0 = COPY %5(<2 x s32>)
69 RET_ReallyLR implicit $d0