You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.4 KiB

# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -march=amdgcn -mcpu=gfx1010 -run-pass=si-optimize-exec-masking -verify-machineinstrs %s -o - | FileCheck %s
---
name: lower_term_opcodes
tracksRegLiveness: false
body: |
; CHECK-LABEL: name: lower_term_opcodes
; CHECK: bb.0:
; CHECK: successors: %bb.1(0x80000000)
; CHECK: $sgpr0 = COPY $sgpr1
; CHECK: bb.1:
; CHECK: successors: %bb.2(0x80000000)
; CHECK: $sgpr0 = S_MOV_B32 0
; CHECK: bb.2:
; CHECK: successors: %bb.3(0x80000000)
; CHECK: $sgpr0 = S_MOV_B32 &SYMBOL
; CHECK: bb.3:
; CHECK: successors: %bb.4(0x80000000)
; CHECK: $sgpr0_sgpr1 = COPY $sgpr2_sgpr3
; CHECK: bb.4:
; CHECK: successors: %bb.5(0x80000000)
; CHECK: $sgpr0_sgpr1 = S_MOV_B64 0
; CHECK: bb.5:
; CHECK: successors: %bb.6(0x80000000)
; CHECK: $sgpr0_sgpr1 = S_MOV_B64 &SYMBOL
; CHECK: bb.6:
; CHECK: successors: %bb.7(0x80000000)
; CHECK: $sgpr0 = S_XOR_B32 $sgpr1, $sgpr2, implicit-def $scc
; CHECK: bb.7:
; CHECK: successors: %bb.8(0x80000000)
; CHECK: $sgpr0_sgpr1 = S_XOR_B64 $sgpr2_sgpr3, $sgpr2_sgpr3, implicit-def $scc
; CHECK: bb.8:
; CHECK: successors: %bb.9(0x80000000)
; CHECK: $sgpr0 = S_OR_B32 $sgpr1, $sgpr2, implicit-def $scc
; CHECK: bb.9:
; CHECK: successors: %bb.10(0x80000000)
; CHECK: $sgpr0_sgpr1 = S_OR_B64 $sgpr2_sgpr3, $sgpr2_sgpr3, implicit-def $scc
; CHECK: bb.10:
; CHECK: successors: %bb.11(0x80000000)
; CHECK: $sgpr0 = S_ANDN2_B32 $sgpr1, $sgpr2, implicit-def $scc
; CHECK: bb.11:
; CHECK: $sgpr0_sgpr1 = S_ANDN2_B64 $sgpr2_sgpr3, $sgpr2_sgpr3, implicit-def $scc
bb.0:
$sgpr0 = S_MOV_B32_term $sgpr1
bb.1:
$sgpr0 = S_MOV_B32_term 0
bb.3:
$sgpr0 = S_MOV_B32_term &SYMBOL
bb.4:
$sgpr0_sgpr1 = S_MOV_B64_term $sgpr2_sgpr3
bb.5:
$sgpr0_sgpr1 = S_MOV_B64_term 0
bb.6:
$sgpr0_sgpr1 = S_MOV_B64_term &SYMBOL
bb.7:
$sgpr0 = S_XOR_B32_term $sgpr1, $sgpr2, implicit-def $scc
bb.8:
$sgpr0_sgpr1 = S_XOR_B64_term $sgpr2_sgpr3, $sgpr2_sgpr3, implicit-def $scc
bb.9:
$sgpr0 = S_OR_B32_term $sgpr1, $sgpr2, implicit-def $scc
bb.10:
$sgpr0_sgpr1 = S_OR_B64_term $sgpr2_sgpr3, $sgpr2_sgpr3, implicit-def $scc
bb.11:
$sgpr0 = S_ANDN2_B32_term $sgpr1, $sgpr2, implicit-def $scc
bb.12:
$sgpr0_sgpr1 = S_ANDN2_B64_term $sgpr2_sgpr3, $sgpr2_sgpr3, implicit-def $scc
...