1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=instruction-select -global-isel-abort=0 -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s
8 tracksRegLiveness: true
14 ; GCN-LABEL: name: fceil_s16_ss
15 ; GCN: liveins: $sgpr0
16 ; GCN: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
17 ; GCN: [[TRUNC:%[0-9]+]]:sgpr(s16) = G_TRUNC [[COPY]](s32)
18 ; GCN: [[FCEIL:%[0-9]+]]:sreg_32(s16) = G_FCEIL [[TRUNC]]
19 ; GCN: [[COPY1:%[0-9]+]]:sreg_32(s32) = COPY [[FCEIL]](s16)
20 ; GCN: $sgpr0 = COPY [[COPY1]](s32)
21 %0:sgpr(s32) = COPY $sgpr0
22 %1:sgpr(s16) = G_TRUNC %0
23 %2:sgpr(s16) = G_FCEIL %1
24 %3:sgpr(s32) = G_ANYEXT %2
32 tracksRegLiveness: true
38 ; GCN-LABEL: name: fceil_s16_vv
39 ; GCN: liveins: $vgpr0
40 ; GCN: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
41 ; GCN: %2:vgpr_32 = nofpexcept V_CEIL_F16_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec
42 ; GCN: $vgpr0 = COPY %2
43 %0:vgpr(s32) = COPY $vgpr0
44 %1:vgpr(s16) = G_TRUNC %0
45 %2:vgpr(s16) = G_FCEIL %1
46 %3:vgpr(s32) = G_ANYEXT %2
54 tracksRegLiveness: true
60 ; GCN-LABEL: name: fceil_s16_vs
61 ; GCN: liveins: $sgpr0
62 ; GCN: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
63 ; GCN: %2:vgpr_32 = nofpexcept V_CEIL_F16_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec
64 ; GCN: $vgpr0 = COPY %2
65 %0:sgpr(s32) = COPY $sgpr0
66 %1:sgpr(s16) = G_TRUNC %0
67 %2:vgpr(s16) = G_FCEIL %1
68 %3:vgpr(s32) = G_ANYEXT %2
73 name: fceil_fneg_s16_vv
76 tracksRegLiveness: true
82 ; GCN-LABEL: name: fceil_fneg_s16_vv
83 ; GCN: liveins: $vgpr0
84 ; GCN: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
85 ; GCN: %3:vgpr_32 = nofpexcept V_CEIL_F16_e64 1, [[COPY]], 0, 0, implicit $mode, implicit $exec
86 ; GCN: $vgpr0 = COPY %3
87 %0:vgpr(s32) = COPY $vgpr0
88 %1:vgpr(s16) = G_TRUNC %0
89 %2:vgpr(s16) = G_FNEG %1
90 %3:vgpr(s16) = G_FCEIL %2
91 %4:vgpr(s32) = G_ANYEXT %3