Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Unified Diff: test/NaCl/Bitcode/pnacl-bcdis/ret.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/NaCl/Bitcode/pnacl-bcdis/phi.ll ('k') | test/NaCl/Bitcode/pnacl-bcdis/select.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/NaCl/Bitcode/pnacl-bcdis/ret.ll
diff --git a/test/NaCl/Bitcode/pnacl-bcdis/ret.ll b/test/NaCl/Bitcode/pnacl-bcdis/ret.ll
new file mode 100644
index 0000000000000000000000000000000000000000..f7e6b5221fd7358634456d0718bdf01e4bdee93c
--- /dev/null
+++ b/test/NaCl/Bitcode/pnacl-bcdis/ret.ll
@@ -0,0 +1,55 @@
+; Test return instructions for various types.
+
+; RUN: llvm-as < %s | pnacl-freeze | pnacl-bccompress --remove-abbreviations \
+; RUN: | pnacl-bcdis | FileCheck %s
+
+define internal void @fvoid() {
+ ret void
+
+; CHECK: | | %b0:
+; CHECK-NEXT: {{.*}}| 3: <10> | ret void;
+
+}
+
+define internal i32 @fi32(i32 %p0) {
+ ret i32 %p0
+
+; CHECK: | | %b0:
+; CHECK: {{.*}}| 3: <10, 1> | ret i32 %p0;
+
+}
+
+
+define internal i64 @fi64(i64 %p0) {
+ ret i64 %p0
+
+; CHECK: | | %b0:
+; CHECK: {{.*}}| 3: <10, 1> | ret i64 %p0;
+
+}
+
+define internal float @ffloat(float %p0) {
+ ret float %p0
+
+; CHECK: | | %b0:
+; CHECK: {{.*}}| 3: <10, 1> | ret float %p0;
+
+}
+
+
+define internal double @fdouble(double %p0) {
+ ret double %p0
+
+; CHECK: | | %b0:
+; CHECK: {{.*}}| 3: <10, 1> | ret double %p0;
+
+}
+
+define internal <4 x i32> @fi32vec(<4 x i32> %p0) {
+ ret <4 x i32> %p0
+
+; CHECK: | | %b0:
+; CHECK-NEXT: {{.*}}| 3: <10, 1> | ret <4 x i32> %p0;
+
+}
+
« no previous file with comments | « test/NaCl/Bitcode/pnacl-bcdis/phi.ll ('k') | test/NaCl/Bitcode/pnacl-bcdis/select.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698