ret void\r
}\r
\r
+; Check that pushing the addresses of globals (Or generally, things that \r
+; aren't exactly immediates) isn't broken.\r
+; Fixes PR21878.\r
+; NORMAL-LABEL: test6\r
+; NORMAL: pushl $_ext\r
+; NORMAL-NEXT: call\r
+declare void @f(i8*)\r
+@ext = external constant i8\r
\r
+define void @test6() {\r
+ call void @f(i8* @ext)\r
+ br label %bb\r
+bb:\r
+ alloca i32\r
+ ret void\r
+}
\ No newline at end of file