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}
14