source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AMDGPU/fconst64.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: 498 bytes
Line 
1; RUN: llc < %s -march=amdgcn -mcpu=tahiti -verify-machineinstrs | FileCheck %s
2; RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs | FileCheck %s
3
4; CHECK: {{^}}fconst_f64:
5; CHECK-DAG: s_mov_b32 {{s[0-9]+}}, 0x40140000
6; CHECK-DAG: s_mov_b32 {{s[0-9]+}}, 0
7
8define void @fconst_f64(double addrspace(1)* %out, double addrspace(1)* %in) {
9   %r1 = load double, double addrspace(1)* %in
10   %r2 = fadd double %r1, 5.000000e+00
11   store double %r2, double addrspace(1)* %out
12   ret void
13}
Note: See TracBrowser for help on using the repository browser.