blob: 9c3a7e3d2e93d759b4cfdeb1cf83376ac6aa8703 [file] [log] [blame]
Tom Stellard70f13db2013-10-10 17:11:46 +00001; RUN: llc < %s -march=r600 -mcpu=tahiti -verify-machineinstrs | FileCheck %s
Benjamin Kramere07b7a92013-07-12 21:54:43 +00002
3; CHECK: @fconst_f64
Matt Arsenault4d7d3832014-04-15 22:32:49 +00004; CHECK-DAG: S_MOV_B32 {{s[0-9]+}}, 0x40140000
Tom Stellard7ed0b522014-04-03 20:19:27 +00005; CHECK-DAG: S_MOV_B32 {{s[0-9]+}}, 0
Benjamin Kramere07b7a92013-07-12 21:54:43 +00006
7define void @fconst_f64(double addrspace(1)* %out, double addrspace(1)* %in) {
8 %r1 = load double addrspace(1)* %in
9 %r2 = fadd double %r1, 5.000000e+00
10 store double %r2, double addrspace(1)* %out
11 ret void
12}