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