1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx900 -run-pass=legalizer %s -o - | FileCheck -check-prefix=GCN %s
5 name: test_strict_fsub_s64
8 liveins: $vgpr0_vgpr1, $vgpr2_vgpr3
10 ; GCN-LABEL: name: test_strict_fsub_s64
11 ; GCN: liveins: $vgpr0_vgpr1, $vgpr2_vgpr3
13 ; GCN-NEXT: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
14 ; GCN-NEXT: [[COPY1:%[0-9]+]]:_(s64) = COPY $vgpr2_vgpr3
15 ; GCN-NEXT: [[FNEG:%[0-9]+]]:_(s64) = G_FNEG [[COPY1]]
16 ; GCN-NEXT: [[STRICT_FADD:%[0-9]+]]:_(s64) = G_STRICT_FADD [[COPY]], [[FNEG]]
17 ; GCN-NEXT: $vgpr0_vgpr1 = COPY [[STRICT_FADD]](s64)
18 %0:_(s64) = COPY $vgpr0_vgpr1
19 %1:_(s64) = COPY $vgpr2_vgpr3
20 %2:_(s64) = G_STRICT_FSUB %0, %1
21 $vgpr0_vgpr1 = COPY %2
25 name: test_strict_fsub_v2s16
28 liveins: $vgpr0, $vgpr1
30 ; GCN-LABEL: name: test_strict_fsub_v2s16
31 ; GCN: liveins: $vgpr0, $vgpr1
33 ; GCN-NEXT: [[COPY:%[0-9]+]]:_(<2 x s16>) = COPY $vgpr0
34 ; GCN-NEXT: [[COPY1:%[0-9]+]]:_(<2 x s16>) = COPY $vgpr1
35 ; GCN-NEXT: [[FNEG:%[0-9]+]]:_(<2 x s16>) = G_FNEG [[COPY1]]
36 ; GCN-NEXT: [[STRICT_FADD:%[0-9]+]]:_(<2 x s16>) = G_STRICT_FADD [[COPY]], [[FNEG]]
37 ; GCN-NEXT: $vgpr0 = COPY [[STRICT_FADD]](<2 x s16>)
38 %0:_(<2 x s16>) = COPY $vgpr0
39 %1:_(<2 x s16>) = COPY $vgpr1
40 %2:_(<2 x s16>) = G_STRICT_FSUB %0, %1