From 7d971524f1ed0ef44e4d0a520d341ddacfb1f308 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Wed, 6 Jan 2016 23:16:37 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256990 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Bitcode/compatibility.ll | 30 +++++++++++++++++++++++++++++ test/Bitcode/constant-sequence.ll | 32 ------------------------------- 2 files changed, 30 insertions(+), 32 deletions(-) delete mode 100644 test/Bitcode/constant-sequence.ll diff --git a/test/Bitcode/compatibility.ll b/test/Bitcode/compatibility.ll index 9363f503be5..d33539a9e81 100644 --- a/test/Bitcode/compatibility.ll +++ b/test/Bitcode/compatibility.ll @@ -52,6 +52,36 @@ $comdat.samesize = comdat samesize @const.vector = constant <2 x i32> ; CHECK: @const.vector = constant <2 x i32> +; 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> +@constant.vector.i8 = constant <3 x i8> +; CHECK: @constant.vector.i16 = constant <3 x i16> +@constant.vector.i16 = constant <3 x i16> +; CHECK: @constant.vector.i32 = constant <3 x i32> +@constant.vector.i32 = constant <3 x i32> +; CHECK: @constant.vector.i64 = constant <3 x i64> +@constant.vector.i64 = constant <3 x i64> +; CHECK: @constant.vector.f16 = constant <3 x half> +@constant.vector.f16 = constant <3 x half> +; CHECK: @constant.vector.f32 = constant <3 x float> +@constant.vector.f32 = constant <3 x float> +; CHECK: @constant.vector.f64 = constant <3 x double> +@constant.vector.f64 = constant <3 x double> + ;; Global Variables ; Format: [@ =] [Linkage] [Visibility] [DLLStorageClass] ; [ThreadLocal] [unnamed_addr] [AddrSpace] [ExternallyInitialized] diff --git a/test/Bitcode/constant-sequence.ll b/test/Bitcode/constant-sequence.ll deleted file mode 100644 index 51e3b0051e0..00000000000 --- a/test/Bitcode/constant-sequence.ll +++ /dev/null @@ -1,32 +0,0 @@ -; Round trip constant sequences through bitcode -; RUN: llvm-as < %s | llvm-dis | FileCheck %s - -; CHECK: @array.i8 = constant [3 x i8] c"\00\01\00" -@array.i8 = constant [3 x i8] [i8 -0, i8 1, i8 0] -; CHECK: @array.i16 = constant [3 x i16] [i16 0, i16 1, i16 0] -@array.i16 = constant [3 x i16] [i16 -0, i16 1, i16 0] -; CHECK: @array.i32 = constant [3 x i32] [i32 0, i32 1, i32 0] -@array.i32 = constant [3 x i32] [i32 -0, i32 1, i32 0] -; CHECK: @array.i64 = constant [3 x i64] [i64 0, i64 1, i64 0] -@array.i64 = constant [3 x i64] [i64 -0, i64 1, i64 0] -; CHECK: @array.f16 = constant [3 x half] [half 0xH8000, half 0xH3C00, half 0xH0000] -@array.f16 = constant [3 x half] [half -0.0, half 1.0, half 0.0] -; CHECK: @array.f32 = constant [3 x float] [float -0.000000e+00, float 1.000000e+00, float 0.000000e+00] -@array.f32 = constant [3 x float] [float -0.0, float 1.0, float 0.0] -; CHECK: @array.f64 = constant [3 x double] [double -0.000000e+00, double 1.000000e+00, double 0.000000e+00] -@array.f64 = constant [3 x double] [double -0.0, double 1.0, double 0.0] - -; CHECK: @vector.i8 = constant <3 x i8> -@vector.i8 = constant <3 x i8> -; CHECK: @vector.i16 = constant <3 x i16> -@vector.i16 = constant <3 x i16> -; CHECK: @vector.i32 = constant <3 x i32> -@vector.i32 = constant <3 x i32> -; CHECK: @vector.i64 = constant <3 x i64> -@vector.i64 = constant <3 x i64> -; CHECK: @vector.f16 = constant <3 x half> -@vector.f16 = constant <3 x half> -; CHECK: @vector.f32 = constant <3 x float> -@vector.f32 = constant <3 x float> -; CHECK: @vector.f64 = constant <3 x double> -@vector.f64 = constant <3 x double> -- 2.34.1