1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=aarch64 -mattr=+fullfp16 -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
9 tracksRegLiveness: true
14 ; CHECK-LABEL: name: s16
15 ; CHECK: liveins: $h0, $h1
17 ; CHECK-NEXT: %a:fpr16 = COPY $h0
18 ; CHECK-NEXT: %b:fpr16 = COPY $h1
19 ; CHECK-NEXT: %select_me:fpr16 = nofpexcept FMAXHrr %a, %b
20 ; CHECK-NEXT: $h0 = COPY %select_me
21 ; CHECK-NEXT: RET_ReallyLR implicit $h0
22 %a:fpr(s16) = COPY $h0
23 %b:fpr(s16) = COPY $h1
24 %select_me:fpr(s16) = G_FMAXIMUM %a, %b
25 $h0 = COPY %select_me(s16)
26 RET_ReallyLR implicit $h0
33 tracksRegLiveness: true
38 ; CHECK-LABEL: name: s32
39 ; CHECK: liveins: $s0, $s1
41 ; CHECK-NEXT: %a:fpr32 = COPY $s0
42 ; CHECK-NEXT: %b:fpr32 = COPY $s1
43 ; CHECK-NEXT: %select_me:fpr32 = nofpexcept FMAXSrr %a, %b
44 ; CHECK-NEXT: $s0 = COPY %select_me
45 ; CHECK-NEXT: RET_ReallyLR implicit $s0
46 %a:fpr(s32) = COPY $s0
47 %b:fpr(s32) = COPY $s1
48 %select_me:fpr(s32) = G_FMAXIMUM %a, %b
49 $s0 = COPY %select_me(s32)
50 RET_ReallyLR implicit $s0
57 tracksRegLiveness: true
62 ; CHECK-LABEL: name: s64
63 ; CHECK: liveins: $d0, $d1
65 ; CHECK-NEXT: %a:fpr64 = COPY $d0
66 ; CHECK-NEXT: %b:fpr64 = COPY $d1
67 ; CHECK-NEXT: %select_me:fpr64 = nofpexcept FMAXDrr %a, %b
68 ; CHECK-NEXT: $d0 = COPY %select_me
69 ; CHECK-NEXT: RET_ReallyLR implicit $d0
70 %a:fpr(s64) = COPY $d0
71 %b:fpr(s64) = COPY $d1
72 %select_me:fpr(s64) = G_FMAXIMUM %a, %b
73 $d0 = COPY %select_me(s64)
74 RET_ReallyLR implicit $d0