1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=nvptx64 -mcpu=sm_30 | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; The zeroext attribute below should be silently ignored because 4*9880d681SAndroid Build Coastguard Worker; we can pass a 32-bit integer across a function call without 5*9880d681SAndroid Build Coastguard Worker; needing to extend it. 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Workertarget 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" 8*9880d681SAndroid Build Coastguard Workertarget triple = "nvptx64-unknown-cuda" 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: .visible .func zeroext_test 11*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: cvt.u32.u16 12*9880d681SAndroid Build Coastguard Workerdefine void @zeroext_test() { 13*9880d681SAndroid Build Coastguard Worker tail call void @call1(i32 zeroext 0) 14*9880d681SAndroid Build Coastguard Worker ret void 15*9880d681SAndroid Build Coastguard Worker} 16*9880d681SAndroid Build Coastguard Worker 17*9880d681SAndroid Build Coastguard Workerdeclare void @call1(i32 zeroext) 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: .visible .func signext_test 20*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: cvt.s32.s16 21*9880d681SAndroid Build Coastguard Workerdefine void @signext_test() { 22*9880d681SAndroid Build Coastguard Worker tail call void @call2(i32 zeroext 0) 23*9880d681SAndroid Build Coastguard Worker ret void 24*9880d681SAndroid Build Coastguard Worker} 25*9880d681SAndroid Build Coastguard Worker 26*9880d681SAndroid Build Coastguard Workerdeclare void @call2(i32 zeroext) 27