[WebAssembly] Don't perform the returned-argument optimization on constants.
[oota-llvm.git] / test / CodeGen / NVPTX / vec8.ll
1 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
2
3 target triple = "nvptx-unknown-cuda"
4
5 ; CHECK: .visible .func foo
6 define void @foo(<8 x i8> %a, i8* %b) {
7   %t0 = extractelement <8 x i8> %a, i32 0
8 ; CHECK-DAG: ld.param.v4.u8
9 ; CHECK-DAG: ld.param.u32
10   store i8 %t0, i8* %b
11   ret void
12 }
13