mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
Test for specific output in lit test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241200 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,8 +1,25 @@
|
|||||||
; RUN: llc -march=amdgcn -mcpu=SI -o /dev/null %s
|
; RUN: llc -march=amdgcn -mcpu=SI -o - %s | FileCheck %s
|
||||||
; Don't crash when the use of an undefined value is only detected by the
|
; Don't crash when the use of an undefined value is only detected by the
|
||||||
; register coalescer because it is hidden with subregister insert/extract.
|
; register coalescer because it is hidden with subregister insert/extract.
|
||||||
target triple="amdgcn--"
|
target triple="amdgcn--"
|
||||||
|
|
||||||
|
; CHECK-LABEL: foobar:
|
||||||
|
; CHECK: s_load_dword s2, s[0:1], 0x9
|
||||||
|
; CHECK-NEXT: s_load_dwordx2 s[4:5], s[0:1], 0xb
|
||||||
|
; CHECK-NEXT: s_waitcnt lgkmcnt(0)
|
||||||
|
; CHECK-NEXT: v_mov_b32_e32 v0, s2
|
||||||
|
; CHECK-NEXT: s_and_saveexec_b64 s[2:3], s[0:1]
|
||||||
|
; CHECK-NEXT: s_xor_b64 s[2:3], exec, s[2:3]
|
||||||
|
; BB0_1:
|
||||||
|
; CHECK: s_load_dword s6, s[0:1], 0xa
|
||||||
|
; CHECK-NEXT: s_waitcnt lgkmcnt(0)
|
||||||
|
; CHECK-NEXT: v_mov_b32_e32 v0, s6
|
||||||
|
; BB0_2:
|
||||||
|
; CHECK: s_or_b64 exec, exec, s[2:3]
|
||||||
|
; CHECK-NEXT: s_mov_b32 s7, 0xf000
|
||||||
|
; CHECK-NEXT: s_mov_b32 s6, -1
|
||||||
|
; CHECK-NEXT: buffer_store_dword v1, s[4:7], 0
|
||||||
|
; CHECK-NEXT: s_endpgm
|
||||||
define void @foobar(float %a0, float %a1, float addrspace(1)* %out) nounwind {
|
define void @foobar(float %a0, float %a1, float addrspace(1)* %out) nounwind {
|
||||||
entry:
|
entry:
|
||||||
%v0 = insertelement <4 x float> undef, float %a0, i32 0
|
%v0 = insertelement <4 x float> undef, float %a0, i32 0
|
||||||
|
Reference in New Issue
Block a user