1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=gfx1010 -run-pass=si-optimize-exec-masking -verify-machineinstrs %s -o - | FileCheck %s
3 # RUN: llc -march=amdgcn -mcpu=gfx1100 -run-pass=si-optimize-exec-masking -verify-machineinstrs %s -o - | FileCheck %s
6 name: lower_term_opcodes
7 tracksRegLiveness: false
9 ; CHECK-LABEL: name: lower_term_opcodes
11 ; CHECK-NEXT: successors: %bb.1(0x80000000)
13 ; CHECK-NEXT: $sgpr0 = COPY $sgpr1
16 ; CHECK-NEXT: successors: %bb.2(0x80000000)
18 ; CHECK-NEXT: $sgpr0 = S_MOV_B32 0
21 ; CHECK-NEXT: successors: %bb.3(0x80000000)
23 ; CHECK-NEXT: $sgpr0 = S_MOV_B32 &SYMBOL
26 ; CHECK-NEXT: successors: %bb.4(0x80000000)
28 ; CHECK-NEXT: $sgpr0_sgpr1 = COPY $sgpr2_sgpr3
31 ; CHECK-NEXT: successors: %bb.5(0x80000000)
33 ; CHECK-NEXT: $sgpr0_sgpr1 = S_MOV_B64 0
36 ; CHECK-NEXT: successors: %bb.6(0x80000000)
38 ; CHECK-NEXT: $sgpr0_sgpr1 = S_MOV_B64 &SYMBOL
41 ; CHECK-NEXT: successors: %bb.7(0x80000000)
43 ; CHECK-NEXT: $sgpr0 = S_XOR_B32 $sgpr1, $sgpr2, implicit-def $scc
46 ; CHECK-NEXT: successors: %bb.8(0x80000000)
48 ; CHECK-NEXT: $sgpr0_sgpr1 = S_XOR_B64 $sgpr2_sgpr3, $sgpr2_sgpr3, implicit-def $scc
51 ; CHECK-NEXT: successors: %bb.9(0x80000000)
53 ; CHECK-NEXT: $sgpr0 = S_OR_B32 $sgpr1, $sgpr2, implicit-def $scc
56 ; CHECK-NEXT: successors: %bb.10(0x80000000)
58 ; CHECK-NEXT: $sgpr0_sgpr1 = S_OR_B64 $sgpr2_sgpr3, $sgpr2_sgpr3, implicit-def $scc
61 ; CHECK-NEXT: successors: %bb.11(0x80000000)
63 ; CHECK-NEXT: $sgpr0 = S_ANDN2_B32 $sgpr1, $sgpr2, implicit-def $scc
66 ; CHECK-NEXT: $sgpr0_sgpr1 = S_ANDN2_B64 $sgpr2_sgpr3, $sgpr2_sgpr3, implicit-def $scc
68 $sgpr0 = S_MOV_B32_term $sgpr1
71 $sgpr0 = S_MOV_B32_term 0
74 $sgpr0 = S_MOV_B32_term &SYMBOL
77 $sgpr0_sgpr1 = S_MOV_B64_term $sgpr2_sgpr3
80 $sgpr0_sgpr1 = S_MOV_B64_term 0
83 $sgpr0_sgpr1 = S_MOV_B64_term &SYMBOL
86 $sgpr0 = S_XOR_B32_term $sgpr1, $sgpr2, implicit-def $scc
89 $sgpr0_sgpr1 = S_XOR_B64_term $sgpr2_sgpr3, $sgpr2_sgpr3, implicit-def $scc
92 $sgpr0 = S_OR_B32_term $sgpr1, $sgpr2, implicit-def $scc
95 $sgpr0_sgpr1 = S_OR_B64_term $sgpr2_sgpr3, $sgpr2_sgpr3, implicit-def $scc
98 $sgpr0 = S_ANDN2_B32_term $sgpr1, $sgpr2, implicit-def $scc
101 $sgpr0_sgpr1 = S_ANDN2_B64_term $sgpr2_sgpr3, $sgpr2_sgpr3, implicit-def $scc