Recommit r256952 "Filtering IR printing for print-after-all/print-before-all"
[oota-llvm.git] / test / Bitcode / constant-sequence.ll
1 ; Round trip constant sequences through bitcode
2 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
3
4 ; CHECK: @array.i8  = constant [3 x i8] c"\00\01\00"
5 @array.i8  = constant [3 x i8] [i8 -0, i8 1, i8 0]
6 ; CHECK: @array.i16 = constant [3 x i16] [i16 0, i16 1, i16 0]
7 @array.i16 = constant [3 x i16] [i16 -0, i16 1, i16 0]
8 ; CHECK: @array.i32 = constant [3 x i32] [i32 0, i32 1, i32 0]
9 @array.i32 = constant [3 x i32] [i32 -0, i32 1, i32 0]
10 ; CHECK: @array.i64 = constant [3 x i64] [i64 0, i64 1, i64 0]
11 @array.i64 = constant [3 x i64] [i64 -0, i64 1, i64 0]
12 ; CHECK: @array.f16 = constant [3 x half] [half 0xH8000, half 0xH3C00, half 0xH0000]
13 @array.f16 = constant [3 x half] [half -0.0, half 1.0, half 0.0]
14 ; CHECK: @array.f32 = constant [3 x float] [float -0.000000e+00, float 1.000000e+00, float 0.000000e+00]
15 @array.f32 = constant [3 x float] [float -0.0, float 1.0, float 0.0]
16 ; CHECK: @array.f64 = constant [3 x double] [double -0.000000e+00, double 1.000000e+00, double 0.000000e+00]
17 @array.f64 = constant [3 x double] [double -0.0, double 1.0, double 0.0]
18
19 ; CHECK: @vector.i8  = constant <3 x i8>  <i8 0, i8 1, i8 0>
20 @vector.i8  = constant <3 x i8>  <i8 -0, i8 1, i8 0>
21 ; CHECK: @vector.i16 = constant <3 x i16> <i16 0, i16 1, i16 0>
22 @vector.i16 = constant <3 x i16> <i16 -0, i16 1, i16 0>
23 ; CHECK: @vector.i32 = constant <3 x i32> <i32 0, i32 1, i32 0>
24 @vector.i32 = constant <3 x i32> <i32 -0, i32 1, i32 0>
25 ; CHECK: @vector.i64 = constant <3 x i64> <i64 0, i64 1, i64 0>
26 @vector.i64 = constant <3 x i64> <i64 -0, i64 1, i64 0>
27 ; CHECK: @vector.f16 = constant <3 x half> <half 0xH8000, half 0xH3C00, half 0xH0000>
28 @vector.f16 = constant <3 x half> <half -0.0, half 1.0, half 0.0>
29 ; CHECK: @vector.f32 = constant <3 x float> <float -0.000000e+00, float 1.000000e+00, float 0.000000e+00>
30 @vector.f32 = constant <3 x float> <float -0.0, float 1.0, float 0.0>
31 ; CHECK: @vector.f64 = constant <3 x double> <double -0.000000e+00, double 1.000000e+00, double 0.000000e+00>
32 @vector.f64 = constant <3 x double> <double -0.0, double 1.0, double 0.0>