mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
91ebb78f19
When running tests on windows, invoking "llc -march=<arch>" will implicitly use windows as the target os, making these tests misbehave after this change. Fix the issue by using more specific -mtriple values instead of plain -march in these tests. This should hopefully fix buildbot failures like http://lab.llvm.org:8011/builders/clang-x64-windows-msvc/builds/9816. llvm-svn: 369443
24 lines
633 B
LLVM
24 lines
633 B
LLVM
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
|
|
|
|
; GCN: foo1:
|
|
; v_cndmask_b32_e64 v0, 0, 1, vcc_lo{{$}}
|
|
; GCN: kernel1:
|
|
; GCN: foo1@gotpcrel32@lo+4
|
|
; GCN: foo1@gotpcrel32@hi+4
|
|
|
|
define void @foo1(i32 %x) #1 {
|
|
entry:
|
|
%cc = icmp eq i32 %x, 0
|
|
store volatile i1 %cc, i1* undef
|
|
ret void
|
|
}
|
|
|
|
define amdgpu_kernel void @kernel1(float %x) #0 {
|
|
entry:
|
|
call void bitcast (void (i32)* @foo1 to void (float)*)(float %x)
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind "target-features"="+wavefrontsize32" }
|
|
attributes #1 = { noinline nounwind "target-features"="+wavefrontsize64" }
|