1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -run-pass=legalizer -o - %s | FileCheck %s
3 # RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=tahiti -run-pass=legalizer -o - %s | FileCheck %s
6 name: test_sextload_private_i32_i8
11 ; CHECK-LABEL: name: test_sextload_private_i32_i8
12 ; CHECK: liveins: $vgpr0
14 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p5) = COPY $vgpr0
15 ; CHECK-NEXT: [[SEXTLOAD:%[0-9]+]]:_(s32) = G_SEXTLOAD [[COPY]](p5) :: (load (s8), addrspace 5)
16 ; CHECK-NEXT: $vgpr0 = COPY [[SEXTLOAD]](s32)
17 %0:_(p5) = COPY $vgpr0
18 %1:_(s32) = G_SEXTLOAD %0 :: (load (s8), addrspace 5)
23 name: test_sextload_private_i32_i16
28 ; CHECK-LABEL: name: test_sextload_private_i32_i16
29 ; CHECK: liveins: $vgpr0
31 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p5) = COPY $vgpr0
32 ; CHECK-NEXT: [[SEXTLOAD:%[0-9]+]]:_(s32) = G_SEXTLOAD [[COPY]](p5) :: (load (s16), addrspace 5)
33 ; CHECK-NEXT: $vgpr0 = COPY [[SEXTLOAD]](s32)
34 %0:_(p5) = COPY $vgpr0
35 %1:_(s32) = G_SEXTLOAD %0 :: (load (s16), addrspace 5)
39 name: test_sextload_private_i31_i8
44 ; CHECK-LABEL: name: test_sextload_private_i31_i8
45 ; CHECK: liveins: $vgpr0
47 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p5) = COPY $vgpr0
48 ; CHECK-NEXT: [[SEXTLOAD:%[0-9]+]]:_(s32) = G_SEXTLOAD [[COPY]](p5) :: (load (s8), addrspace 5)
49 ; CHECK-NEXT: $vgpr0 = COPY [[SEXTLOAD]](s32)
50 %0:_(p5) = COPY $vgpr0
51 %1:_(s31) = G_SEXTLOAD %0 :: (load (s8), addrspace 5)
52 %2:_(s32) = G_ANYEXT %1
56 name: test_sextload_private_i64_i8
61 ; CHECK-LABEL: name: test_sextload_private_i64_i8
62 ; CHECK: liveins: $vgpr0
64 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p5) = COPY $vgpr0
65 ; CHECK-NEXT: [[SEXTLOAD:%[0-9]+]]:_(s32) = G_SEXTLOAD [[COPY]](p5) :: (load (s8), addrspace 5)
66 ; CHECK-NEXT: [[SEXT:%[0-9]+]]:_(s64) = G_SEXT [[SEXTLOAD]](s32)
67 ; CHECK-NEXT: $vgpr0_vgpr1 = COPY [[SEXT]](s64)
68 %0:_(p5) = COPY $vgpr0
69 %1:_(s64) = G_SEXTLOAD %0 :: (load (s8), addrspace 5)
70 $vgpr0_vgpr1 = COPY %1
73 name: test_sextload_private_i64_i16
78 ; CHECK-LABEL: name: test_sextload_private_i64_i16
79 ; CHECK: liveins: $vgpr0
81 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p5) = COPY $vgpr0
82 ; CHECK-NEXT: [[SEXTLOAD:%[0-9]+]]:_(s32) = G_SEXTLOAD [[COPY]](p5) :: (load (s16), addrspace 5)
83 ; CHECK-NEXT: [[SEXT:%[0-9]+]]:_(s64) = G_SEXT [[SEXTLOAD]](s32)
84 ; CHECK-NEXT: $vgpr0_vgpr1 = COPY [[SEXT]](s64)
85 %0:_(p5) = COPY $vgpr0
86 %1:_(s64) = G_SEXTLOAD %0 :: (load (s16), addrspace 5)
87 $vgpr0_vgpr1 = COPY %1
90 name: test_sextload_private_i64_i32
95 ; CHECK-LABEL: name: test_sextload_private_i64_i32
96 ; CHECK: liveins: $vgpr0_vgpr1
98 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p5) = COPY $vgpr0
99 ; CHECK-NEXT: [[LOAD:%[0-9]+]]:_(s32) = G_LOAD [[COPY]](p5) :: (load (s32), addrspace 5)
100 ; CHECK-NEXT: [[SEXT:%[0-9]+]]:_(s64) = G_SEXT [[LOAD]](s32)
101 ; CHECK-NEXT: $vgpr0_vgpr1 = COPY [[SEXT]](s64)
102 %0:_(p5) = COPY $vgpr0
103 %1:_(s64) = G_SEXTLOAD %0 :: (load (s32), addrspace 5)
104 $vgpr0_vgpr1 = COPY %1