source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AMDGPU/input-mods.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 984 bytes
Line 
1;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s --check-prefix=EG
2;RUN: llc < %s -march=r600 -mcpu=cayman | FileCheck %s --check-prefix=CM
3
4;EG-LABEL: {{^}}test:
5;EG: EXP_IEEE *
6;CM-LABEL: {{^}}test:
7;CM: EXP_IEEE T{{[0-9]+}}.X, -|T{{[0-9]+}}.X|
8;CM: EXP_IEEE T{{[0-9]+}}.Y (MASKED), -|T{{[0-9]+}}.X|
9;CM: EXP_IEEE T{{[0-9]+}}.Z (MASKED), -|T{{[0-9]+}}.X|
10;CM: EXP_IEEE * T{{[0-9]+}}.W (MASKED), -|T{{[0-9]+}}.X|
11
12define void @test(<4 x float> inreg %reg0) #0 {
13   %r0 = extractelement <4 x float> %reg0, i32 0
14   %r1 = call float @llvm.fabs.f32(float %r0)
15   %r2 = fsub float -0.000000e+00, %r1
16   %r3 = call float @llvm.exp2.f32(float %r2)
17   %vec = insertelement <4 x float> undef, float %r3, i32 0
18   call void @llvm.R600.store.swizzle(<4 x float> %vec, i32 0, i32 0)
19   ret void
20}
21
22declare float @llvm.exp2.f32(float) readnone
23declare float @llvm.fabs.f32(float) readnone
24declare void @llvm.R600.store.swizzle(<4 x float>, i32, i32)
25
26attributes #0 = { "ShaderType"="0" }
Note: See TracBrowser for help on using the repository browser.