[llvm] r256990 - Bitcode: Move these tests into compatibility.ll

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 6 15:16:38 PST 2016


Author: bogner
Date: Wed Jan  6 17:16:37 2016
New Revision: 256990

URL: http://llvm.org/viewvc/llvm-project?rev=256990&view=rev
Log:
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.

Removed:
    llvm/trunk/test/Bitcode/constant-sequence.ll
Modified:
    llvm/trunk/test/Bitcode/compatibility.ll

Modified: llvm/trunk/test/Bitcode/compatibility.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/compatibility.ll?rev=256990&r1=256989&r2=256990&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/compatibility.ll (original)
+++ llvm/trunk/test/Bitcode/compatibility.ll Wed Jan  6 17:16:37 2016
@@ -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"
+ at 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]
+ at 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]
+ at 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]
+ at 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]
+ at 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]
+ at 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]
+ at 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>
+ at 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>
+ at 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>
+ at 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>
+ at 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>
+ at 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>
+ at 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>
+ at 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]

Removed: llvm/trunk/test/Bitcode/constant-sequence.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/constant-sequence.ll?rev=256989&view=auto
==============================================================================
--- llvm/trunk/test/Bitcode/constant-sequence.ll (original)
+++ llvm/trunk/test/Bitcode/constant-sequence.ll (removed)
@@ -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"
- at 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]
- at 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]
- at 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]
- at 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]
- at 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]
- at 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]
- at array.f64 = constant [3 x double] [double -0.0, double 1.0, double 0.0]
-
-; CHECK: @vector.i8  = constant <3 x i8>  <i8 0, i8 1, i8 0>
- at vector.i8  = constant <3 x i8>  <i8 -0, i8 1, i8 0>
-; CHECK: @vector.i16 = constant <3 x i16> <i16 0, i16 1, i16 0>
- at vector.i16 = constant <3 x i16> <i16 -0, i16 1, i16 0>
-; CHECK: @vector.i32 = constant <3 x i32> <i32 0, i32 1, i32 0>
- at vector.i32 = constant <3 x i32> <i32 -0, i32 1, i32 0>
-; CHECK: @vector.i64 = constant <3 x i64> <i64 0, i64 1, i64 0>
- at vector.i64 = constant <3 x i64> <i64 -0, i64 1, i64 0>
-; CHECK: @vector.f16 = constant <3 x half> <half 0xH8000, half 0xH3C00, half 0xH0000>
- at vector.f16 = constant <3 x half> <half -0.0, half 1.0, half 0.0>
-; CHECK: @vector.f32 = constant <3 x float> <float -0.000000e+00, float 1.000000e+00, float 0.000000e+00>
- at vector.f32 = constant <3 x float> <float -0.0, float 1.0, float 0.0>
-; CHECK: @vector.f64 = constant <3 x double> <double -0.000000e+00, double 1.000000e+00, double 0.000000e+00>
- at vector.f64 = constant <3 x double> <double -0.0, double 1.0, double 0.0>




More information about the llvm-commits mailing list