Fix test case to appease buildbot.

Test case trap-fnattr.cpp was failng on clang-ppc64-elf-linux2 because ppc64
sign-extends the i32 return value.
 
This is a follow-up to r241306.

llvm-svn: 241314
This commit is contained in:
Akira Hatanaka 2015-07-03 00:50:30 +00:00
parent 49d6cd35ad
commit 5720be5e34
1 changed files with 4 additions and 4 deletions

View File

@ -11,19 +11,19 @@ void test_builtin(void) {
__builtin_trap();
}
// TRAPFUNC-LABEL: define i32 @_Z13test_noreturnv
// TRAPFUNC-LABEL: define i32 {{.*}}@_Z13test_noreturnv
// TRAPFUNC: call void @llvm.trap() [[ATTR0]]
// NOOPTION-LABEL: define i32 @_Z13test_noreturnv
// NOOPTION-LABEL: define i32 {{.*}}@_Z13test_noreturnv
// NOOPTION: call void @llvm.trap(){{$}}
int test_noreturn(void) {
}
// TRAPFUNC-LABEL: define i32 @_Z17test_add_overflowii
// TRAPFUNC-LABEL: define i32 {{.*}}@_Z17test_add_overflowii
// TRAPFUNC: call void @llvm.trap() [[ATTR1:#[0-9]+]]
// NOOPTION-LABEL: define i32 @_Z17test_add_overflowii
// NOOPTION-LABEL: define i32 {{.*}}@_Z17test_add_overflowii
// NOOPTION: call void @llvm.trap() [[ATTR2:#[0-9]+]]
int test_add_overflow(int a, int b) {