1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -mcpu=tahiti -run-pass=instruction-select -verify-machineinstrs -o - %s | FileCheck %s
8 tracksRegLiveness: true
14 ; CHECK-LABEL: name: ffloor_s32_vv
15 ; CHECK: liveins: $vgpr0
17 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
18 ; CHECK-NEXT: %1:vgpr_32 = nofpexcept V_FLOOR_F32_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec
19 ; CHECK-NEXT: $vgpr0 = COPY %1
20 %0:vgpr(s32) = COPY $vgpr0
21 %1:vgpr(s32) = G_FFLOOR %0
29 tracksRegLiveness: true
35 ; CHECK-LABEL: name: ffloor_s32_vs
36 ; CHECK: liveins: $sgpr0
38 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
39 ; CHECK-NEXT: %1:vgpr_32 = nofpexcept V_FLOOR_F32_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec
40 ; CHECK-NEXT: $vgpr0 = COPY %1
41 %0:sgpr(s32) = COPY $sgpr0
42 %1:vgpr(s32) = G_FFLOOR %0
47 name: ffloor_fneg_s32_vs
50 tracksRegLiveness: true
56 ; CHECK-LABEL: name: ffloor_fneg_s32_vs
57 ; CHECK: liveins: $sgpr0
59 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
60 ; CHECK-NEXT: %2:vgpr_32 = nofpexcept V_FLOOR_F32_e64 1, [[COPY]], 0, 0, implicit $mode, implicit $exec
61 ; CHECK-NEXT: $vgpr0 = COPY %2
62 %0:sgpr(s32) = COPY $sgpr0
63 %1:sgpr(s32) = G_FNEG %0
64 %2:vgpr(s32) = G_FFLOOR %1
69 name: ffloor_fneg_s32_vv
72 tracksRegLiveness: true
77 ; CHECK-LABEL: name: ffloor_fneg_s32_vv
78 ; CHECK: liveins: $vgpr0
80 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
81 ; CHECK-NEXT: %2:vgpr_32 = nofpexcept V_FLOOR_F32_e64 1, [[COPY]], 0, 0, implicit $mode, implicit $exec
82 ; CHECK-NEXT: $vgpr0 = COPY %2
83 %0:vgpr(s32) = COPY $vgpr0
84 %1:vgpr(s32) = G_FNEG %0
85 %2:vgpr(s32) = G_FFLOOR %1