source: icGREP/icgrep-devel/llvm-3.5.0.src/test/CodeGen/R600/seto.ll @ 4574

Last change on this file since 4574 was 4574, checked in by cameron, 4 years ago

Updating to LLVM 3.6

File size: 577 bytes
Line 
1; RUN: llc -march=amdgcn -mcpu=verde -verify-machineinstrs < %s | FileCheck %s
2
3; CHECK-LABEL: {{^}}main:
4; CHECK: v_cmp_o_f32_e64 [[CMP:s\[[0-9]+:[0-9]+\]]], [[SREG:s[0-9]+]], [[SREG]]
5; CHECK-NEXT: v_cndmask_b32_e64 {{v[0-9]+}}, 0, 1.0, [[CMP]]
6define void @main(float %p) {
7main_body:
8  %c = fcmp oeq float %p, %p
9  %r = select i1 %c, float 1.000000e+00, float 0.000000e+00
10  call void @llvm.SI.export(i32 15, i32 1, i32 1, i32 0, i32 0, float %r, float %r, float %r, float %r)
11  ret void
12}
13
14declare void @llvm.SI.export(i32, i32, i32, i32, i32, float, float, float, float)
Note: See TracBrowser for help on using the repository browser.