[llvm] b860d86 - [AArch64][GlobalISel] Regenerate legalize-fp-arith-fp16.mir. NFC
David Green via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 26 02:08:04 PDT 2024
Author: David Green
Date: 2024-09-26T10:07:59+01:00
New Revision: b860d8659a336dd5a5b813c8790db2de4b1a04c5
URL: https://github.com/llvm/llvm-project/commit/b860d8659a336dd5a5b813c8790db2de4b1a04c5
DIFF: https://github.com/llvm/llvm-project/commit/b860d8659a336dd5a5b813c8790db2de4b1a04c5.diff
LOG: [AArch64][GlobalISel] Regenerate legalize-fp-arith-fp16.mir. NFC
Added:
Modified:
llvm/test/CodeGen/AArch64/GlobalISel/legalize-fp-arith-fp16.mir
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AArch64/GlobalISel/legalize-fp-arith-fp16.mir b/llvm/test/CodeGen/AArch64/GlobalISel/legalize-fp-arith-fp16.mir
index f69cbd73b4b32c..438b347fcbcabe 100644
--- a/llvm/test/CodeGen/AArch64/GlobalISel/legalize-fp-arith-fp16.mir
+++ b/llvm/test/CodeGen/AArch64/GlobalISel/legalize-fp-arith-fp16.mir
@@ -12,21 +12,24 @@ body: |
; NO-FP16-LABEL: name: fadd
; NO-FP16: liveins: $h0, $h1
- ; NO-FP16: %x:_(s16) = COPY $h0
- ; NO-FP16: %y:_(s16) = COPY $h1
- ; NO-FP16: [[FPEXT:%[0-9]+]]:_(s32) = G_FPEXT %x(s16)
- ; NO-FP16: [[FPEXT1:%[0-9]+]]:_(s32) = G_FPEXT %y(s16)
- ; NO-FP16: [[FADD:%[0-9]+]]:_(s32) = G_FADD [[FPEXT]], [[FPEXT1]]
- ; NO-FP16: %op:_(s16) = G_FPTRUNC [[FADD]](s32)
- ; NO-FP16: $h0 = COPY %op(s16)
- ; NO-FP16: RET_ReallyLR implicit $h0
+ ; NO-FP16-NEXT: {{ $}}
+ ; NO-FP16-NEXT: %x:_(s16) = COPY $h0
+ ; NO-FP16-NEXT: %y:_(s16) = COPY $h1
+ ; NO-FP16-NEXT: [[FPEXT:%[0-9]+]]:_(s32) = G_FPEXT %x(s16)
+ ; NO-FP16-NEXT: [[FPEXT1:%[0-9]+]]:_(s32) = G_FPEXT %y(s16)
+ ; NO-FP16-NEXT: [[FADD:%[0-9]+]]:_(s32) = G_FADD [[FPEXT]], [[FPEXT1]]
+ ; NO-FP16-NEXT: %op:_(s16) = G_FPTRUNC [[FADD]](s32)
+ ; NO-FP16-NEXT: $h0 = COPY %op(s16)
+ ; NO-FP16-NEXT: RET_ReallyLR implicit $h0
+ ;
; FP16-LABEL: name: fadd
; FP16: liveins: $h0, $h1
- ; FP16: %x:_(s16) = COPY $h0
- ; FP16: %y:_(s16) = COPY $h1
- ; FP16: %op:_(s16) = G_FADD %x, %y
- ; FP16: $h0 = COPY %op(s16)
- ; FP16: RET_ReallyLR implicit $h0
+ ; FP16-NEXT: {{ $}}
+ ; FP16-NEXT: %x:_(s16) = COPY $h0
+ ; FP16-NEXT: %y:_(s16) = COPY $h1
+ ; FP16-NEXT: %op:_(s16) = G_FADD %x, %y
+ ; FP16-NEXT: $h0 = COPY %op(s16)
+ ; FP16-NEXT: RET_ReallyLR implicit $h0
%x:_(s16) = COPY $h0
%y:_(s16) = COPY $h1
%op:_(s16) = G_FADD %x, %y
@@ -43,21 +46,24 @@ body: |
; NO-FP16-LABEL: name: fsub
; NO-FP16: liveins: $h0, $h1
- ; NO-FP16: %x:_(s16) = COPY $h0
- ; NO-FP16: %y:_(s16) = COPY $h1
- ; NO-FP16: [[FPEXT:%[0-9]+]]:_(s32) = G_FPEXT %x(s16)
- ; NO-FP16: [[FPEXT1:%[0-9]+]]:_(s32) = G_FPEXT %y(s16)
- ; NO-FP16: [[FSUB:%[0-9]+]]:_(s32) = G_FSUB [[FPEXT]], [[FPEXT1]]
- ; NO-FP16: %op:_(s16) = G_FPTRUNC [[FSUB]](s32)
- ; NO-FP16: $h0 = COPY %op(s16)
- ; NO-FP16: RET_ReallyLR implicit $h0
+ ; NO-FP16-NEXT: {{ $}}
+ ; NO-FP16-NEXT: %x:_(s16) = COPY $h0
+ ; NO-FP16-NEXT: %y:_(s16) = COPY $h1
+ ; NO-FP16-NEXT: [[FPEXT:%[0-9]+]]:_(s32) = G_FPEXT %x(s16)
+ ; NO-FP16-NEXT: [[FPEXT1:%[0-9]+]]:_(s32) = G_FPEXT %y(s16)
+ ; NO-FP16-NEXT: [[FSUB:%[0-9]+]]:_(s32) = G_FSUB [[FPEXT]], [[FPEXT1]]
+ ; NO-FP16-NEXT: %op:_(s16) = G_FPTRUNC [[FSUB]](s32)
+ ; NO-FP16-NEXT: $h0 = COPY %op(s16)
+ ; NO-FP16-NEXT: RET_ReallyLR implicit $h0
+ ;
; FP16-LABEL: name: fsub
; FP16: liveins: $h0, $h1
- ; FP16: %x:_(s16) = COPY $h0
- ; FP16: %y:_(s16) = COPY $h1
- ; FP16: %op:_(s16) = G_FSUB %x, %y
- ; FP16: $h0 = COPY %op(s16)
- ; FP16: RET_ReallyLR implicit $h0
+ ; FP16-NEXT: {{ $}}
+ ; FP16-NEXT: %x:_(s16) = COPY $h0
+ ; FP16-NEXT: %y:_(s16) = COPY $h1
+ ; FP16-NEXT: %op:_(s16) = G_FSUB %x, %y
+ ; FP16-NEXT: $h0 = COPY %op(s16)
+ ; FP16-NEXT: RET_ReallyLR implicit $h0
%x:_(s16) = COPY $h0
%y:_(s16) = COPY $h1
%op:_(s16) = G_FSUB %x, %y
@@ -74,21 +80,24 @@ body: |
; NO-FP16-LABEL: name: fmul
; NO-FP16: liveins: $h0, $h1
- ; NO-FP16: %x:_(s16) = COPY $h0
- ; NO-FP16: %y:_(s16) = COPY $h1
- ; NO-FP16: [[FPEXT:%[0-9]+]]:_(s32) = G_FPEXT %x(s16)
- ; NO-FP16: [[FPEXT1:%[0-9]+]]:_(s32) = G_FPEXT %y(s16)
- ; NO-FP16: [[FMUL:%[0-9]+]]:_(s32) = G_FMUL [[FPEXT]], [[FPEXT1]]
- ; NO-FP16: %op:_(s16) = G_FPTRUNC [[FMUL]](s32)
- ; NO-FP16: $h0 = COPY %op(s16)
- ; NO-FP16: RET_ReallyLR implicit $h0
+ ; NO-FP16-NEXT: {{ $}}
+ ; NO-FP16-NEXT: %x:_(s16) = COPY $h0
+ ; NO-FP16-NEXT: %y:_(s16) = COPY $h1
+ ; NO-FP16-NEXT: [[FPEXT:%[0-9]+]]:_(s32) = G_FPEXT %x(s16)
+ ; NO-FP16-NEXT: [[FPEXT1:%[0-9]+]]:_(s32) = G_FPEXT %y(s16)
+ ; NO-FP16-NEXT: [[FMUL:%[0-9]+]]:_(s32) = G_FMUL [[FPEXT]], [[FPEXT1]]
+ ; NO-FP16-NEXT: %op:_(s16) = G_FPTRUNC [[FMUL]](s32)
+ ; NO-FP16-NEXT: $h0 = COPY %op(s16)
+ ; NO-FP16-NEXT: RET_ReallyLR implicit $h0
+ ;
; FP16-LABEL: name: fmul
; FP16: liveins: $h0, $h1
- ; FP16: %x:_(s16) = COPY $h0
- ; FP16: %y:_(s16) = COPY $h1
- ; FP16: %op:_(s16) = G_FMUL %x, %y
- ; FP16: $h0 = COPY %op(s16)
- ; FP16: RET_ReallyLR implicit $h0
+ ; FP16-NEXT: {{ $}}
+ ; FP16-NEXT: %x:_(s16) = COPY $h0
+ ; FP16-NEXT: %y:_(s16) = COPY $h1
+ ; FP16-NEXT: %op:_(s16) = G_FMUL %x, %y
+ ; FP16-NEXT: $h0 = COPY %op(s16)
+ ; FP16-NEXT: RET_ReallyLR implicit $h0
%x:_(s16) = COPY $h0
%y:_(s16) = COPY $h1
%op:_(s16) = G_FMUL %x, %y
@@ -105,21 +114,24 @@ body: |
; NO-FP16-LABEL: name: fdiv
; NO-FP16: liveins: $h0, $h1
- ; NO-FP16: %x:_(s16) = COPY $h0
- ; NO-FP16: %y:_(s16) = COPY $h1
- ; NO-FP16: [[FPEXT:%[0-9]+]]:_(s32) = G_FPEXT %x(s16)
- ; NO-FP16: [[FPEXT1:%[0-9]+]]:_(s32) = G_FPEXT %y(s16)
- ; NO-FP16: [[FDIV:%[0-9]+]]:_(s32) = G_FDIV [[FPEXT]], [[FPEXT1]]
- ; NO-FP16: %op:_(s16) = G_FPTRUNC [[FDIV]](s32)
- ; NO-FP16: $h0 = COPY %op(s16)
- ; NO-FP16: RET_ReallyLR implicit $h0
+ ; NO-FP16-NEXT: {{ $}}
+ ; NO-FP16-NEXT: %x:_(s16) = COPY $h0
+ ; NO-FP16-NEXT: %y:_(s16) = COPY $h1
+ ; NO-FP16-NEXT: [[FPEXT:%[0-9]+]]:_(s32) = G_FPEXT %x(s16)
+ ; NO-FP16-NEXT: [[FPEXT1:%[0-9]+]]:_(s32) = G_FPEXT %y(s16)
+ ; NO-FP16-NEXT: [[FDIV:%[0-9]+]]:_(s32) = G_FDIV [[FPEXT]], [[FPEXT1]]
+ ; NO-FP16-NEXT: %op:_(s16) = G_FPTRUNC [[FDIV]](s32)
+ ; NO-FP16-NEXT: $h0 = COPY %op(s16)
+ ; NO-FP16-NEXT: RET_ReallyLR implicit $h0
+ ;
; FP16-LABEL: name: fdiv
; FP16: liveins: $h0, $h1
- ; FP16: %x:_(s16) = COPY $h0
- ; FP16: %y:_(s16) = COPY $h1
- ; FP16: %op:_(s16) = G_FDIV %x, %y
- ; FP16: $h0 = COPY %op(s16)
- ; FP16: RET_ReallyLR implicit $h0
+ ; FP16-NEXT: {{ $}}
+ ; FP16-NEXT: %x:_(s16) = COPY $h0
+ ; FP16-NEXT: %y:_(s16) = COPY $h1
+ ; FP16-NEXT: %op:_(s16) = G_FDIV %x, %y
+ ; FP16-NEXT: $h0 = COPY %op(s16)
+ ; FP16-NEXT: RET_ReallyLR implicit $h0
%x:_(s16) = COPY $h0
%y:_(s16) = COPY $h1
%op:_(s16) = G_FDIV %x, %y
@@ -136,18 +148,21 @@ body: |
; NO-FP16-LABEL: name: fneg
; NO-FP16: liveins: $h0
- ; NO-FP16: %x:_(s16) = COPY $h0
- ; NO-FP16: [[FPEXT:%[0-9]+]]:_(s32) = G_FPEXT %x(s16)
- ; NO-FP16: [[FNEG:%[0-9]+]]:_(s32) = G_FNEG [[FPEXT]]
- ; NO-FP16: %op:_(s16) = G_FPTRUNC [[FNEG]](s32)
- ; NO-FP16: $h0 = COPY %op(s16)
- ; NO-FP16: RET_ReallyLR implicit $h0
+ ; NO-FP16-NEXT: {{ $}}
+ ; NO-FP16-NEXT: %x:_(s16) = COPY $h0
+ ; NO-FP16-NEXT: [[FPEXT:%[0-9]+]]:_(s32) = G_FPEXT %x(s16)
+ ; NO-FP16-NEXT: [[FNEG:%[0-9]+]]:_(s32) = G_FNEG [[FPEXT]]
+ ; NO-FP16-NEXT: %op:_(s16) = G_FPTRUNC [[FNEG]](s32)
+ ; NO-FP16-NEXT: $h0 = COPY %op(s16)
+ ; NO-FP16-NEXT: RET_ReallyLR implicit $h0
+ ;
; FP16-LABEL: name: fneg
; FP16: liveins: $h0
- ; FP16: %x:_(s16) = COPY $h0
- ; FP16: %op:_(s16) = G_FNEG %x
- ; FP16: $h0 = COPY %op(s16)
- ; FP16: RET_ReallyLR implicit $h0
+ ; FP16-NEXT: {{ $}}
+ ; FP16-NEXT: %x:_(s16) = COPY $h0
+ ; FP16-NEXT: %op:_(s16) = G_FNEG %x
+ ; FP16-NEXT: $h0 = COPY %op(s16)
+ ; FP16-NEXT: RET_ReallyLR implicit $h0
%x:_(s16) = COPY $h0
%op:_(s16) = G_FNEG %x
$h0 = COPY %op(s16)
More information about the llvm-commits
mailing list