diff options
author | Justin Bogner <mail@justinbogner.com> | 2016-01-06 23:16:37 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2016-01-06 23:16:37 +0000 |
commit | d99e71833ce3ceac551e16a7518398992e5b622d (patch) | |
tree | cac48d72f041de792c6811712bd83d3a73fc4ed0 /llvm/test/Bitcode/compatibility.ll | |
parent | ef9a56faa0c8bda1cd961cc2fa84000a8b727cff (diff) | |
download | bcm5719-llvm-d99e71833ce3ceac551e16a7518398992e5b622d.tar.gz bcm5719-llvm-d99e71833ce3ceac551e16a7518398992e5b622d.zip |
Bitcode: Move these tests into compatibility.ll
I added a couple of tests in r256982, but vedantk suggested that they
fit better into compatibility.ll, since they could catch format breaks
later on there.
llvm-svn: 256990
Diffstat (limited to 'llvm/test/Bitcode/compatibility.ll')
-rw-r--r-- | llvm/test/Bitcode/compatibility.ll | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/compatibility.ll b/llvm/test/Bitcode/compatibility.ll index 9363f503be5..d33539a9e81 100644 --- a/llvm/test/Bitcode/compatibility.ll +++ b/llvm/test/Bitcode/compatibility.ll @@ -52,6 +52,36 @@ $comdat.samesize = comdat samesize @const.vector = constant <2 x i32> <i32 -5, i32 -6> ; CHECK: @const.vector = constant <2 x i32> <i32 -5, i32 -6> +; CHECK: @constant.array.i8 = constant [3 x i8] c"\00\01\00" +@constant.array.i8 = constant [3 x i8] [i8 -0, i8 1, i8 0] +; CHECK: @constant.array.i16 = constant [3 x i16] [i16 0, i16 1, i16 0] +@constant.array.i16 = constant [3 x i16] [i16 -0, i16 1, i16 0] +; CHECK: @constant.array.i32 = constant [3 x i32] [i32 0, i32 1, i32 0] +@constant.array.i32 = constant [3 x i32] [i32 -0, i32 1, i32 0] +; CHECK: @constant.array.i64 = constant [3 x i64] [i64 0, i64 1, i64 0] +@constant.array.i64 = constant [3 x i64] [i64 -0, i64 1, i64 0] +; CHECK: @constant.array.f16 = constant [3 x half] [half 0xH8000, half 0xH3C00, half 0xH0000] +@constant.array.f16 = constant [3 x half] [half -0.0, half 1.0, half 0.0] +; CHECK: @constant.array.f32 = constant [3 x float] [float -0.000000e+00, float 1.000000e+00, float 0.000000e+00] +@constant.array.f32 = constant [3 x float] [float -0.0, float 1.0, float 0.0] +; CHECK: @constant.array.f64 = constant [3 x double] [double -0.000000e+00, double 1.000000e+00, double 0.000000e+00] +@constant.array.f64 = constant [3 x double] [double -0.0, double 1.0, double 0.0] + +; CHECK: @constant.vector.i8 = constant <3 x i8> <i8 0, i8 1, i8 0> +@constant.vector.i8 = constant <3 x i8> <i8 -0, i8 1, i8 0> +; CHECK: @constant.vector.i16 = constant <3 x i16> <i16 0, i16 1, i16 0> +@constant.vector.i16 = constant <3 x i16> <i16 -0, i16 1, i16 0> +; CHECK: @constant.vector.i32 = constant <3 x i32> <i32 0, i32 1, i32 0> +@constant.vector.i32 = constant <3 x i32> <i32 -0, i32 1, i32 0> +; CHECK: @constant.vector.i64 = constant <3 x i64> <i64 0, i64 1, i64 0> +@constant.vector.i64 = constant <3 x i64> <i64 -0, i64 1, i64 0> +; CHECK: @constant.vector.f16 = constant <3 x half> <half 0xH8000, half 0xH3C00, half 0xH0000> +@constant.vector.f16 = constant <3 x half> <half -0.0, half 1.0, half 0.0> +; CHECK: @constant.vector.f32 = constant <3 x float> <float -0.000000e+00, float 1.000000e+00, float 0.000000e+00> +@constant.vector.f32 = constant <3 x float> <float -0.0, float 1.0, float 0.0> +; CHECK: @constant.vector.f64 = constant <3 x double> <double -0.000000e+00, double 1.000000e+00, double 0.000000e+00> +@constant.vector.f64 = constant <3 x double> <double -0.0, double 1.0, double 0.0> + ;; Global Variables ; Format: [@<GlobalVarName> =] [Linkage] [Visibility] [DLLStorageClass] ; [ThreadLocal] [unnamed_addr] [AddrSpace] [ExternallyInitialized] |