mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 14:35:54 +00:00
Add tests for nounwind and noreturn function attributes.
llvm-svn: 35261
This commit is contained in:
parent
a2d8b5e7a1
commit
648d9f53ca
@ -8,9 +8,9 @@
|
||||
declare i16 @"test"(i16 sext %arg) sext
|
||||
declare i8 @"test2" (i16 zext %a2) zext
|
||||
|
||||
implementation
|
||||
declare void @exit(i32) noreturn nounwind
|
||||
|
||||
define i32 @main(i32 %argc, i8 **%argv) {
|
||||
define i32 @main(i32 %argc, i8 **%argv) nounwind inreg {
|
||||
%val = trunc i32 %argc to i16
|
||||
%res1 = call i16 (i16 sext) sext *@test(i16 %val)
|
||||
%two = add i16 %res1, %res1
|
||||
|
Loading…
Reference in New Issue
Block a user