diff options
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/Mips/trap1.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/trap1.ll b/test/CodeGen/Mips/trap1.ll new file mode 100644 index 0000000..bfcd7fe --- /dev/null +++ b/test/CodeGen/Mips/trap1.ll @@ -0,0 +1,13 @@ +; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=pic < %s | FileCheck %s -check-prefix=pic + +declare void @llvm.trap() + +; Function Attrs: nounwind optsize readnone +define i32 @main() { +entry: + call void @llvm.trap() + unreachable +; pic: break 0 + ret i32 0 +} + |