summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2015-10-27 21:17:06 +0000
committerVedant Kumar <vsk@apple.com>2015-10-27 21:17:06 +0000
commitad6d6e742316e4ddc0c2879b92c85398b0847e31 (patch)
tree8000f0baad9981e02888f23e33f1c28c11cb2b8f /llvm/test/Bitcode
parentb1bb7391660e30ae5d51391407fc9956c4c55fb0 (diff)
downloadbcm5719-llvm-ad6d6e742316e4ddc0c2879b92c85398b0847e31.tar.gz
bcm5719-llvm-ad6d6e742316e4ddc0c2879b92c85398b0847e31.zip
[IR] Limit bits used for CallingConv::ID, update tests
Use 10 bits to represent calling convention ID's instead of 13, and update the bitcode compatibility tests accordingly. We now error-out in the bitcode reader when we see bad calling conv ID's. Thanks to rnk and dexonsmith for feedback! Differential Revision: http://reviews.llvm.org/D13826 llvm-svn: 251452
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/compatibility-3.6.ll4
-rw-r--r--llvm/test/Bitcode/compatibility-3.6.ll.bcbin10192 -> 10192 bytes
-rw-r--r--llvm/test/Bitcode/compatibility-3.7.ll4
-rw-r--r--llvm/test/Bitcode/compatibility-3.7.ll.bcbin11584 -> 11584 bytes
-rw-r--r--llvm/test/Bitcode/compatibility.ll4
-rw-r--r--llvm/test/Bitcode/tailcall.ll16
6 files changed, 14 insertions, 14 deletions
diff --git a/llvm/test/Bitcode/compatibility-3.6.ll b/llvm/test/Bitcode/compatibility-3.6.ll
index 53f061da00d..dcec8dc17bd 100644
--- a/llvm/test/Bitcode/compatibility-3.6.ll
+++ b/llvm/test/Bitcode/compatibility-3.6.ll
@@ -375,8 +375,8 @@ declare cc80 void @f.cc80()
; CHECK: declare x86_vectorcallcc void @f.cc80()
declare x86_vectorcallcc void @f.x86_vectorcallcc()
; CHECK: declare x86_vectorcallcc void @f.x86_vectorcallcc()
-declare cc8191 void @f.cc8191()
-; CHECK: declare cc8191 void @f.cc8191()
+declare cc1023 void @f.cc1023()
+; CHECK: declare cc1023 void @f.cc1023()
; Functions -- ret attrs (Return attributes)
declare zeroext i64 @f.zeroext()
diff --git a/llvm/test/Bitcode/compatibility-3.6.ll.bc b/llvm/test/Bitcode/compatibility-3.6.ll.bc
index d75cbca7fb1..86b66200031 100644
--- a/llvm/test/Bitcode/compatibility-3.6.ll.bc
+++ b/llvm/test/Bitcode/compatibility-3.6.ll.bc
Binary files differ
diff --git a/llvm/test/Bitcode/compatibility-3.7.ll b/llvm/test/Bitcode/compatibility-3.7.ll
index af1eb5d297f..da1471e84ef 100644
--- a/llvm/test/Bitcode/compatibility-3.7.ll
+++ b/llvm/test/Bitcode/compatibility-3.7.ll
@@ -375,8 +375,8 @@ declare cc80 void @f.cc80()
; CHECK: declare x86_vectorcallcc void @f.cc80()
declare x86_vectorcallcc void @f.x86_vectorcallcc()
; CHECK: declare x86_vectorcallcc void @f.x86_vectorcallcc()
-declare cc8191 void @f.cc8191()
-; CHECK: declare cc8191 void @f.cc8191()
+declare cc1023 void @f.cc1023()
+; CHECK: declare cc1023 void @f.cc1023()
; Functions -- ret attrs (Return attributes)
declare zeroext i64 @f.zeroext()
diff --git a/llvm/test/Bitcode/compatibility-3.7.ll.bc b/llvm/test/Bitcode/compatibility-3.7.ll.bc
index 1bd87c08d04..14c0f1a6d6f 100644
--- a/llvm/test/Bitcode/compatibility-3.7.ll.bc
+++ b/llvm/test/Bitcode/compatibility-3.7.ll.bc
Binary files differ
diff --git a/llvm/test/Bitcode/compatibility.ll b/llvm/test/Bitcode/compatibility.ll
index e18c239d530..4c6349c803c 100644
--- a/llvm/test/Bitcode/compatibility.ll
+++ b/llvm/test/Bitcode/compatibility.ll
@@ -377,8 +377,8 @@ declare cc80 void @f.cc80()
; CHECK: declare x86_vectorcallcc void @f.cc80()
declare x86_vectorcallcc void @f.x86_vectorcallcc()
; CHECK: declare x86_vectorcallcc void @f.x86_vectorcallcc()
-declare cc8191 void @f.cc8191()
-; CHECK: declare cc8191 void @f.cc8191()
+declare cc1023 void @f.cc1023()
+; CHECK: declare cc1023 void @f.cc1023()
; Functions -- ret attrs (Return attributes)
declare zeroext i64 @f.zeroext()
diff --git a/llvm/test/Bitcode/tailcall.ll b/llvm/test/Bitcode/tailcall.ll
index 01190d74c34..6a4b8885847 100644
--- a/llvm/test/Bitcode/tailcall.ll
+++ b/llvm/test/Bitcode/tailcall.ll
@@ -3,16 +3,16 @@
; Check that musttail and tail roundtrip.
-declare cc8191 void @t1_callee()
-define cc8191 void @t1() {
-; CHECK: tail call cc8191 void @t1_callee()
- tail call cc8191 void @t1_callee()
+declare cc1023 void @t1_callee()
+define cc1023 void @t1() {
+; CHECK: tail call cc1023 void @t1_callee()
+ tail call cc1023 void @t1_callee()
ret void
}
-declare cc8191 void @t2_callee()
-define cc8191 void @t2() {
-; CHECK: musttail call cc8191 void @t2_callee()
- musttail call cc8191 void @t2_callee()
+declare cc1023 void @t2_callee()
+define cc1023 void @t2() {
+; CHECK: musttail call cc1023 void @t2_callee()
+ musttail call cc1023 void @t2_callee()
ret void
}
OpenPOWER on IntegriCloud