[llvm] 44882fa - [Sparc] fp16-promote.ll - Refactor check prefixes + remove unused ones
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 11 10:38:51 PST 2020
Author: Simon Pilgrim
Date: 2020-11-11T18:38:22Z
New Revision: 44882fa104b41aba4226377d8330064d1a502b43
URL: https://github.com/llvm/llvm-project/commit/44882fa104b41aba4226377d8330064d1a502b43
DIFF: https://github.com/llvm/llvm-project/commit/44882fa104b41aba4226377d8330064d1a502b43.diff
LOG: [Sparc] fp16-promote.ll - Refactor check prefixes + remove unused ones
Added:
Modified:
llvm/test/CodeGen/SPARC/fp16-promote.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/SPARC/fp16-promote.ll b/llvm/test/CodeGen/SPARC/fp16-promote.ll
index c4ce1cd9fc26..6d8c25f9f0d4 100644
--- a/llvm/test/CodeGen/SPARC/fp16-promote.ll
+++ b/llvm/test/CodeGen/SPARC/fp16-promote.ll
@@ -1,34 +1,16 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc -mtriple=sparc-linux-gnu < %s | FileCheck %s -check-prefix=V8 -check-prefix=V8-BE
-; RUN: llc -mtriple=sparcel-linux-gnu < %s | FileCheck %s -check-prefix=V8 -check-prefix=V8-EL
-; RUN: llc -mtriple=sparc-linux-gnu -O0 < %s | FileCheck %s -check-prefix=V8-UNOPT
-; RUN: llc -mtriple=sparc-linux-gnu -mattr=v9 < %s | FileCheck %s -check-prefix=V9
-; RUN: llc -mtriple=sparc64-unknown-linux < %s | FileCheck %s -check-prefix=SPARC64
+; RUN: llc -mtriple=sparc-linux-gnu < %s | FileCheck %s -check-prefixes=ALL,V8,V8-OPT
+; RUN: llc -mtriple=sparcel-linux-gnu < %s | FileCheck %s -check-prefixes=ALL,V8,V8-OPT
+; RUN: llc -mtriple=sparc-linux-gnu -O0 < %s | FileCheck %s -check-prefixes=ALL,V8,V8-UNOPT
+; RUN: llc -mtriple=sparc-linux-gnu -mattr=v9 < %s | FileCheck %s -check-prefixes=ALL,V9
+; RUN: llc -mtriple=sparc64-unknown-linux < %s | FileCheck %s -check-prefixes=ALL,SPARC64
define void @test_load_store(half* %p, half* %q) nounwind {
-; V8-LABEL: test_load_store:
-; V8: ! %bb.0:
-; V8-NEXT: lduh [%o0], %o0
-; V8-NEXT: retl
-; V8-NEXT: sth %o0, [%o1]
-;
-; V8-UNOPT-LABEL: test_load_store:
-; V8-UNOPT: ! %bb.0:
-; V8-UNOPT-NEXT: lduh [%o0], %o0
-; V8-UNOPT-NEXT: retl
-; V8-UNOPT-NEXT: sth %o0, [%o1]
-;
-; V9-LABEL: test_load_store:
-; V9: ! %bb.0:
-; V9-NEXT: lduh [%o0], %o0
-; V9-NEXT: retl
-; V9-NEXT: sth %o0, [%o1]
-;
-; SPARC64-LABEL: test_load_store:
-; SPARC64: ! %bb.0:
-; SPARC64-NEXT: lduh [%o0], %o0
-; SPARC64-NEXT: retl
-; SPARC64-NEXT: sth %o0, [%o1]
+; ALL-LABEL: test_load_store:
+; ALL: ! %bb.0:
+; ALL-NEXT: lduh [%o0], %o0
+; ALL-NEXT: retl
+; ALL-NEXT: sth %o0, [%o1]
%a = load half, half* %p
store half %a, half* %q
ret void
@@ -43,14 +25,6 @@ define float @test_fpextend_float(half* %p) nounwind {
; V8-NEXT: ret
; V8-NEXT: restore
;
-; V8-UNOPT-LABEL: test_fpextend_float:
-; V8-UNOPT: ! %bb.0:
-; V8-UNOPT-NEXT: save %sp, -96, %sp
-; V8-UNOPT-NEXT: call __gnu_h2f_ieee
-; V8-UNOPT-NEXT: lduh [%i0], %o0
-; V8-UNOPT-NEXT: ret
-; V8-UNOPT-NEXT: restore
-;
; V9-LABEL: test_fpextend_float:
; V9: ! %bb.0:
; V9-NEXT: save %sp, -96, %sp
@@ -81,15 +55,6 @@ define double @test_fpextend_double(half* %p) nounwind {
; V8-NEXT: ret
; V8-NEXT: restore
;
-; V8-UNOPT-LABEL: test_fpextend_double:
-; V8-UNOPT: ! %bb.0:
-; V8-UNOPT-NEXT: save %sp, -96, %sp
-; V8-UNOPT-NEXT: call __gnu_h2f_ieee
-; V8-UNOPT-NEXT: lduh [%i0], %o0
-; V8-UNOPT-NEXT: fstod %f0, %f0
-; V8-UNOPT-NEXT: ret
-; V8-UNOPT-NEXT: restore
-;
; V9-LABEL: test_fpextend_double:
; V9: ! %bb.0:
; V9-NEXT: save %sp, -96, %sp
@@ -113,14 +78,14 @@ define double @test_fpextend_double(half* %p) nounwind {
}
define void @test_fptrunc_float(float %f, half* %p) nounwind {
-; V8-LABEL: test_fptrunc_float:
-; V8: ! %bb.0:
-; V8-NEXT: save %sp, -96, %sp
-; V8-NEXT: call __gnu_f2h_ieee
-; V8-NEXT: mov %i0, %o0
-; V8-NEXT: sth %o0, [%i1]
-; V8-NEXT: ret
-; V8-NEXT: restore
+; V8-OPT-LABEL: test_fptrunc_float:
+; V8-OPT: ! %bb.0:
+; V8-OPT-NEXT: save %sp, -96, %sp
+; V8-OPT-NEXT: call __gnu_f2h_ieee
+; V8-OPT-NEXT: mov %i0, %o0
+; V8-OPT-NEXT: sth %o0, [%i1]
+; V8-OPT-NEXT: ret
+; V8-OPT-NEXT: restore
;
; V8-UNOPT-LABEL: test_fptrunc_float:
; V8-UNOPT: ! %bb.0:
@@ -156,19 +121,19 @@ define void @test_fptrunc_float(float %f, half* %p) nounwind {
}
define void @test_fptrunc_double(double %d, half* %p) nounwind {
-; V8-LABEL: test_fptrunc_double:
-; V8: ! %bb.0:
-; V8-NEXT: save %sp, -112, %sp
-; V8-NEXT: ! kill: def $i1 killed $i1 killed $i0_i1 def $i0_i1
-; V8-NEXT: ! kill: def $i0 killed $i0 killed $i0_i1 def $i0_i1
-; V8-NEXT: std %i0, [%fp+-8]
-; V8-NEXT: ldd [%fp+-8], %f0
-; V8-NEXT: std %f0, [%fp+-16]
-; V8-NEXT: call __truncdfhf2
-; V8-NEXT: ldd [%fp+-16], %o0
-; V8-NEXT: sth %o0, [%i2]
-; V8-NEXT: ret
-; V8-NEXT: restore
+; V8-OPT-LABEL: test_fptrunc_double:
+; V8-OPT: ! %bb.0:
+; V8-OPT-NEXT: save %sp, -112, %sp
+; V8-OPT-NEXT: ! kill: def $i1 killed $i1 killed $i0_i1 def $i0_i1
+; V8-OPT-NEXT: ! kill: def $i0 killed $i0 killed $i0_i1 def $i0_i1
+; V8-OPT-NEXT: std %i0, [%fp+-8]
+; V8-OPT-NEXT: ldd [%fp+-8], %f0
+; V8-OPT-NEXT: std %f0, [%fp+-16]
+; V8-OPT-NEXT: call __truncdfhf2
+; V8-OPT-NEXT: ldd [%fp+-16], %o0
+; V8-OPT-NEXT: sth %o0, [%i2]
+; V8-OPT-NEXT: ret
+; V8-OPT-NEXT: restore
;
; V8-UNOPT-LABEL: test_fptrunc_double:
; V8-UNOPT: ! %bb.0:
@@ -217,22 +182,22 @@ define void @test_fptrunc_double(double %d, half* %p) nounwind {
}
define void @test_fadd(half* %p, half* %q) nounwind {
-; V8-LABEL: test_fadd:
-; V8: ! %bb.0:
-; V8-NEXT: save %sp, -104, %sp
-; V8-NEXT: call __gnu_h2f_ieee
-; V8-NEXT: lduh [%i0], %o0
-; V8-NEXT: st %f0, [%fp+-8] ! 4-byte Folded Spill
-; V8-NEXT: call __gnu_h2f_ieee
-; V8-NEXT: lduh [%i1], %o0
-; V8-NEXT: ld [%fp+-8], %f1 ! 4-byte Folded Reload
-; V8-NEXT: fadds %f1, %f0, %f0
-; V8-NEXT: st %f0, [%fp+-4]
-; V8-NEXT: call __gnu_f2h_ieee
-; V8-NEXT: ld [%fp+-4], %o0
-; V8-NEXT: sth %o0, [%i0]
-; V8-NEXT: ret
-; V8-NEXT: restore
+; V8-OPT-LABEL: test_fadd:
+; V8-OPT: ! %bb.0:
+; V8-OPT-NEXT: save %sp, -104, %sp
+; V8-OPT-NEXT: call __gnu_h2f_ieee
+; V8-OPT-NEXT: lduh [%i0], %o0
+; V8-OPT-NEXT: st %f0, [%fp+-8] ! 4-byte Folded Spill
+; V8-OPT-NEXT: call __gnu_h2f_ieee
+; V8-OPT-NEXT: lduh [%i1], %o0
+; V8-OPT-NEXT: ld [%fp+-8], %f1 ! 4-byte Folded Reload
+; V8-OPT-NEXT: fadds %f1, %f0, %f0
+; V8-OPT-NEXT: st %f0, [%fp+-4]
+; V8-OPT-NEXT: call __gnu_f2h_ieee
+; V8-OPT-NEXT: ld [%fp+-4], %o0
+; V8-OPT-NEXT: sth %o0, [%i0]
+; V8-OPT-NEXT: ret
+; V8-OPT-NEXT: restore
;
; V8-UNOPT-LABEL: test_fadd:
; V8-UNOPT: ! %bb.0:
@@ -291,22 +256,22 @@ define void @test_fadd(half* %p, half* %q) nounwind {
}
define void @test_fmul(half* %p, half* %q) nounwind {
-; V8-LABEL: test_fmul:
-; V8: ! %bb.0:
-; V8-NEXT: save %sp, -104, %sp
-; V8-NEXT: call __gnu_h2f_ieee
-; V8-NEXT: lduh [%i0], %o0
-; V8-NEXT: st %f0, [%fp+-8] ! 4-byte Folded Spill
-; V8-NEXT: call __gnu_h2f_ieee
-; V8-NEXT: lduh [%i1], %o0
-; V8-NEXT: ld [%fp+-8], %f1 ! 4-byte Folded Reload
-; V8-NEXT: fmuls %f1, %f0, %f0
-; V8-NEXT: st %f0, [%fp+-4]
-; V8-NEXT: call __gnu_f2h_ieee
-; V8-NEXT: ld [%fp+-4], %o0
-; V8-NEXT: sth %o0, [%i0]
-; V8-NEXT: ret
-; V8-NEXT: restore
+; V8-OPT-LABEL: test_fmul:
+; V8-OPT: ! %bb.0:
+; V8-OPT-NEXT: save %sp, -104, %sp
+; V8-OPT-NEXT: call __gnu_h2f_ieee
+; V8-OPT-NEXT: lduh [%i0], %o0
+; V8-OPT-NEXT: st %f0, [%fp+-8] ! 4-byte Folded Spill
+; V8-OPT-NEXT: call __gnu_h2f_ieee
+; V8-OPT-NEXT: lduh [%i1], %o0
+; V8-OPT-NEXT: ld [%fp+-8], %f1 ! 4-byte Folded Reload
+; V8-OPT-NEXT: fmuls %f1, %f0, %f0
+; V8-OPT-NEXT: st %f0, [%fp+-4]
+; V8-OPT-NEXT: call __gnu_f2h_ieee
+; V8-OPT-NEXT: ld [%fp+-4], %o0
+; V8-OPT-NEXT: sth %o0, [%i0]
+; V8-OPT-NEXT: ret
+; V8-OPT-NEXT: restore
;
; V8-UNOPT-LABEL: test_fmul:
; V8-UNOPT: ! %bb.0:
More information about the llvm-commits
mailing list