1 ; RUN: llc < %s -march=nvptx64 -mcpu=sm_30 -verify-machineinstrs | FileCheck %s
\r
3 ; The zeroext attribute below should be silently ignored because
\r
4 ; we can pass a 32-bit integer across a function call without
\r
5 ; needing to extend it.
\r
7 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64"
\r
8 target triple = "nvptx64-unknown-cuda"
\r
10 ; CHECK-LABEL: .visible .func zeroext_test
\r
11 ; CHECK-NOT: cvt.u32.u16
\r
12 define void @zeroext_test() {
\r
13 tail call void @call1(i32 zeroext 0)
\r
17 declare void @call1(i32 zeroext)
\r
19 ; CHECK-LABEL: .visible .func signext_test
\r
20 ; CHECK-NOT: cvt.s32.s16
\r
21 define void @signext_test() {
\r
22 tail call void @call2(i32 zeroext 0)
\r
26 declare void @call2(i32 zeroext)
\r