aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-08-08 12:02:15 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-08-08 12:02:30 -0700
commit3093568256db472276b75f41f477a4bcb0d53983 (patch)
tree5b06ae2d6f85384b6e090879776bf5617612ef9c
parent9e737adb21e910c787700d0babd5abcd82cbb2bf (diff)
test for llvm.expect.i32 being defined
-rw-r--r--tests/cases/unannotated.ll6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/cases/unannotated.ll b/tests/cases/unannotated.ll
index 50cd4bf0..d87b2e54 100644
--- a/tests/cases/unannotated.ll
+++ b/tests/cases/unannotated.ll
@@ -9,8 +9,12 @@ declare hidden zeroext i1 @_OptionParser(i8*, i8) ; separate test: check that we
define i32 @main() nounwind {
%1 = alloca i32, align 4
store i32 0, i32* %1
- %2 = call i32 @puts(i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0))
+ %2 = call i32 @llvm.expect.i32(i32 0, i32 1)
+ %3 = call i32 @puts(i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0))
ret i32 0
}
declare i32 @puts(i8*)
+
+declare i32 @llvm.expect.i32(i32, i32)
+