1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -march=amdgcn -mcpu=gfx1150 -run-pass=legalizer -verify-machineinstrs -o - %s | FileCheck -check-prefix=GFX1150 %s
8 liveins: $sgpr0, $sgpr1
10 ; GFX1150-LABEL: name: f32_olt
11 ; GFX1150: liveins: $sgpr0, $sgpr1
12 ; GFX1150-NEXT: {{ $}}
13 ; GFX1150-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $sgpr0
14 ; GFX1150-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $sgpr1
15 ; GFX1150-NEXT: [[FCMP:%[0-9]+]]:_(s32) = G_FCMP floatpred(olt), [[COPY]](s32), [[COPY1]]
16 ; GFX1150-NEXT: $sgpr0 = COPY [[FCMP]](s32)
17 %0:_(s32) = COPY $sgpr0
18 %1:_(s32) = COPY $sgpr1
19 %2:_(s32) = G_FCMP floatpred(olt), %0(s32), %1
28 liveins: $sgpr0, $sgpr1
30 ; GFX1150-LABEL: name: f16_olt
31 ; GFX1150: liveins: $sgpr0, $sgpr1
32 ; GFX1150-NEXT: {{ $}}
33 ; GFX1150-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $sgpr0
34 ; GFX1150-NEXT: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[COPY]](s32)
35 ; GFX1150-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY $sgpr1
36 ; GFX1150-NEXT: [[TRUNC1:%[0-9]+]]:_(s16) = G_TRUNC [[COPY1]](s32)
37 ; GFX1150-NEXT: [[FCMP:%[0-9]+]]:_(s32) = G_FCMP floatpred(olt), [[TRUNC]](s16), [[TRUNC1]]
38 ; GFX1150-NEXT: $sgpr0 = COPY [[FCMP]](s32)
39 %0:_(s32) = COPY $sgpr0
40 %1:_(s16) = G_TRUNC %0(s32)
41 %2:_(s32) = COPY $sgpr1
42 %3:_(s16) = G_TRUNC %2(s32)
43 %4:_(s32) = G_FCMP floatpred(olt), %1(s16), %3