Mercurial > hg > Members > tobaru > cbc > CbC_llvm
comparison test/CodeGen/AMDGPU/i8-to-double-to-float.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=r600 -mcpu=redwood | FileCheck %s | |
2 | |
3 ;CHECK: UINT_TO_FLT * T{{[0-9]+\.[XYZW], T[0-9]+\.[XYZW]}} | |
4 | |
5 define void @test(float addrspace(1)* %out, i8 addrspace(1)* %in) { | |
6 %1 = load i8, i8 addrspace(1)* %in | |
7 %2 = uitofp i8 %1 to double | |
8 %3 = fptrunc double %2 to float | |
9 store float %3, float addrspace(1)* %out | |
10 ret void | |
11 } |