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

Unified Diff: test/Transforms/NaCl/pnacl-abi-simplify-preopt.ll

Issue 135953002: PNaCl: Fix handling of va_arg on structs in simplification passes (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Update comment Created 6 years, 11 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 | « lib/Transforms/NaCl/PNaClABISimplify.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/Transforms/NaCl/pnacl-abi-simplify-preopt.ll
diff --git a/test/Transforms/NaCl/pnacl-abi-simplify-preopt.ll b/test/Transforms/NaCl/pnacl-abi-simplify-preopt.ll
index 1cf73775594ba43ce4a2d7937436d63b8be09e66..e34c46d80c8abe3ba5abd27bd4f4d4d8a8791a9c 100644
--- a/test/Transforms/NaCl/pnacl-abi-simplify-preopt.ll
+++ b/test/Transforms/NaCl/pnacl-abi-simplify-preopt.ll
@@ -25,6 +25,18 @@ define void @varargs_func(...) {
; CHECK-NOT: @varargs_func(...)
+%MyStruct = type { i32, i32 }
+
+; Checks that ExpandVarArgs and ExpandStructRegs are applied in the
+; right order.
+define void @get_struct_from_varargs(i8* %va_list, %MyStruct* %dest) {
+ %val = va_arg i8* %va_list, %MyStruct
+ store %MyStruct %val, %MyStruct* %dest
+ ret void
+}
+; CHECK-NOT: va_arg
+
+
@llvm.global_ctors = appending global [0 x { i32, void ()* }] zeroinitializer
; CHECK-NOT: @llvm.global_ctors
« no previous file with comments | « lib/Transforms/NaCl/PNaClABISimplify.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698