forked from OSchip/llvm-project
25 lines
764 B
YAML
25 lines
764 B
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -O0 -run-pass=legalizer %s -o - | FileCheck %s
|
|
|
|
---
|
|
name: legal_brcond
|
|
body: |
|
|
; CHECK-LABEL: name: legal_brcond
|
|
; CHECK: bb.0.entry:
|
|
; CHECK: successors: %bb.1(0x80000000)
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[ICMP:%[0-9]+]]:_(s1) = G_ICMP intpred(ne), [[COPY]](s32), [[COPY1]]
|
|
; CHECK: G_BRCOND [[ICMP]](s1), %bb.1
|
|
; CHECK: bb.1:
|
|
bb.0.entry:
|
|
successors: %bb.1
|
|
liveins: $vgpr0, $vgpr1
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s1) = G_ICMP intpred(ne), %0, %1
|
|
G_BRCOND %2, %bb.1
|
|
|
|
bb.1:
|
|
...
|