mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[NFC][PowerPC] Modify the test case to test RM
This commit is contained in:
parent
d9efe1beb1
commit
c88dfc1378
@ -1,4 +1,10 @@
|
||||
; RUN: llc -mcpu=pwr9 -mtriple=powerpc64le-unknown-linux-gnu < %s \
|
||||
; RUN: -stop-before=finalize-isel -verify-machineinstrs | \
|
||||
; RUN: FileCheck -check-prefix=BEFORE-FINALIZE-ISEL %s
|
||||
; RUN: llc -mcpu=pwr9 -mtriple=powerpc64le-unknown-linux-gnu < %s \
|
||||
; RUN: -stop-after=finalize-isel -verify-machineinstrs | \
|
||||
; RUN: FileCheck -check-prefix=AFTER-FINALIZE-ISEL %s
|
||||
; RUN: llc -mcpu=pwr9 -mtriple=powerpc64le-unknown-linux-gnu < %s \
|
||||
; RUN: -verify-machineinstrs | FileCheck %s
|
||||
; RUN: llc -mcpu=pwr7 -mtriple=powerpc64le-unknown-linux-gnu < %s \
|
||||
; RUN: -verify-machineinstrs | FileCheck -check-prefix=CHECK-PWR7 %s
|
||||
@ -8,6 +14,14 @@ entry:
|
||||
%0 = tail call double @llvm.ppc.setrnd(i32 2)
|
||||
ret double %0
|
||||
|
||||
; BEFORE-FINALIZE-ISEL: test_setrndi
|
||||
; BEFORE-FINALIZE-ISEL: SETRNDi 2, implicit-def dead $rm, implicit $rm
|
||||
|
||||
; AFTER-FINALIZE-ISEL: test_setrndi
|
||||
; AFTER-FINALIZE-ISEL: MFFS implicit $rm
|
||||
; AFTER-FINALIZE-ISEL: MTFSB0 31, implicit-def $rm, implicit $rm
|
||||
; AFTER-FINALIZE-ISEL: MTFSB1 30, implicit-def $rm, implicit $rm
|
||||
|
||||
; CHECK-LABEL: @test_setrndi
|
||||
; CHECK: # %bb.0:
|
||||
; CHECK-DAG: mffs 1
|
||||
@ -21,6 +35,13 @@ entry:
|
||||
%0 = tail call double @llvm.ppc.setrnd(i32 %x)
|
||||
ret double %0
|
||||
|
||||
; BEFORE-FINALIZE-ISEL: test_setrnd
|
||||
; BEFORE-FINALIZE-ISEL: SETRND killed %1, implicit-def dead $rm, implicit $rm
|
||||
|
||||
; AFTER-FINALIZE-ISEL: test_setrnd
|
||||
; AFTER-FINALIZE-ISEL: MFFS implicit $rm
|
||||
; AFTER-FINALIZE-ISEL: MTFSF 255, %7, 0, 0
|
||||
|
||||
; CHECK-LABEL: @test_setrnd
|
||||
; CHECK: # %bb.0:
|
||||
; CHECK-DAG: mffs 1
|
||||
|
Loading…
Reference in New Issue
Block a user