1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=tahiti -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
3 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
9 tracksRegLiveness: true
15 ; CHECK-LABEL: name: sin_s32_vs
16 ; CHECK: liveins: $sgpr0
17 ; CHECK: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
18 ; CHECK: %1:vgpr_32 = nofpexcept V_SIN_F32_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec
19 ; CHECK: S_ENDPGM 0, implicit %1
20 %0:sgpr(s32) = COPY $sgpr0
21 %1:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.sin), %0
22 S_ENDPGM 0, implicit %1
29 tracksRegLiveness: true
35 ; CHECK-LABEL: name: sin_s32_vv
36 ; CHECK: liveins: $vgpr0
37 ; CHECK: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
38 ; CHECK: %1:vgpr_32 = nofpexcept V_SIN_F32_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec
39 ; CHECK: S_ENDPGM 0, implicit %1
40 %0:vgpr(s32) = COPY $vgpr0
41 %1:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.sin), %0
42 S_ENDPGM 0, implicit %1