1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=aarch64 -run-pass=regbankselect -verify-machineinstrs %s -o - | FileCheck %s
12 ; CHECK-LABEL: name: fp_inputs
13 ; CHECK: %lhs:fpr(s32) = COPY $s0
14 ; CHECK: %rhs:fpr(s32) = COPY $s1
15 ; CHECK: %minnum:fpr(s32) = G_FMINNUM %lhs, %rhs
16 ; CHECK: $s0 = COPY %minnum(s32)
17 ; CHECK: RET_ReallyLR implicit $s0
18 %lhs:_(s32) = COPY $s0
19 %rhs:_(s32) = COPY $s1
20 %minnum:_(s32) = G_FMINNUM %lhs, %rhs
21 $s0 = COPY %minnum(s32)
22 RET_ReallyLR implicit $s0
32 ; CHECK-LABEL: name: gp_inputs
33 ; CHECK: %lhs:gpr(s32) = COPY $w0
34 ; CHECK: %rhs:gpr(s32) = COPY $w1
35 ; CHECK: [[COPY:%[0-9]+]]:fpr(s32) = COPY %lhs(s32)
36 ; CHECK: [[COPY1:%[0-9]+]]:fpr(s32) = COPY %rhs(s32)
37 ; CHECK: %minnum:fpr(s32) = G_FMINNUM [[COPY]], [[COPY1]]
38 ; CHECK: $s0 = COPY %minnum(s32)
39 ; CHECK: RET_ReallyLR implicit $s0
40 %lhs:_(s32) = COPY $w0
41 %rhs:_(s32) = COPY $w1
42 %minnum:_(s32) = G_FMINNUM %lhs, %rhs
43 $s0 = COPY %minnum(s32)
44 RET_ReallyLR implicit $s0
54 ; CHECK-LABEL: name: gp_use
55 ; CHECK: %lhs:fpr(s32) = COPY $s0
56 ; CHECK: %rhs:fpr(s32) = COPY $s1
57 ; CHECK: %minnum:fpr(s32) = G_FMINNUM %lhs, %rhs
58 ; CHECK: $w0 = COPY %minnum(s32)
59 ; CHECK: RET_ReallyLR implicit $w0
60 %lhs:_(s32) = COPY $s0
61 %rhs:_(s32) = COPY $s1
62 %minnum:_(s32) = G_FMINNUM %lhs, %rhs
63 $w0 = COPY %minnum(s32)
64 RET_ReallyLR implicit $w0