• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
2
3; Make sure the globals constant initializers are not prone to host endianess
4; issues.
5
6; CHECK-DAG: .b8 Gbli08[2] = {171, 205};
7@Gbli08 = global [2 x i8] [i8 171, i8 205]
8
9; CHECK-DAG: .b8 Gbli16[4] = {205, 171, 1, 239};
10@Gbli16 = global [2 x i16] [i16 43981, i16 61185]
11
12; CHECK-DAG: .b8 Gbli32[8] = {1, 239, 205, 171, 137, 103, 69, 35};
13@Gbli32 = global [2 x i32] [i32 2882400001, i32 591751049]
14
15; CHECK-DAG: .b8 Gbli64[16] = {137, 103, 69, 35, 1, 239, 205, 171, 239, 205, 171, 137, 103, 69, 35, 1};
16@Gbli64 = global [2 x i64] [i64 12379813738877118345, i64 81985529216486895]
17
18; CHECK-DAG: .b8 Gblf32[8] = {192, 225, 100, 75, 0, 96, 106, 69};
19@Gblf32 = global [2 x float] [float 1.5e+7, float 3.75e+3]
20
21; CHECK-DAG: .b8 Gblf64[16] = {116, 10, 181, 48, 134, 62, 230, 58, 106, 222, 138, 98, 204, 250, 200, 75};
22@Gblf64 = global [2 x double] [double 5.75e-25, double 12.25e+56]
23
24