comparison test/CodeGen/AMDGPU/fconst64.ll @ 95:afa8332a0e37

LLVM 3.8
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Tue, 13 Oct 2015 17:48:58 +0900
parents
children 803732b1fca8
comparison
equal deleted inserted replaced
84:f3e34b893a5f 95:afa8332a0e37
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
8 define 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 }