summaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/Generic
diff options
context:
space:
mode:
authorantangelo <contact@antangelo.com>2024-12-01 17:46:08 -0500
committerGitHub <noreply@github.com>2024-12-01 17:46:08 -0500
commit73f087b3318a8f887cd867f27608f693fee6dc7b (patch)
treee5fb1273fbeda51354ebf31b32c49b84fa0a7c55 /llvm/test/CodeGen/Generic
parenta09df64f406be162b0bd096dbe2466603b7a4f29 (diff)
[NFC][SelectionDAG] Replace generic @llvm.expect.with.probability codegen test with X86 test (#117848)
Adds test case for X86 to check that the output of @llvm.expect.with.probability's generic lowering is reasonable. This replaces a generic test which only asserts that llc does not crash.
Diffstat (limited to 'llvm/test/CodeGen/Generic')
-rw-r--r--llvm/test/CodeGen/Generic/builtin-expect-with-probability.ll8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/Generic/builtin-expect-with-probability.ll b/llvm/test/CodeGen/Generic/builtin-expect-with-probability.ll
deleted file mode 100644
index aef134b636d5..000000000000
--- a/llvm/test/CodeGen/Generic/builtin-expect-with-probability.ll
+++ /dev/null
@@ -1,8 +0,0 @@
-; RUN: llc < %s
-
-declare i32 @llvm.expect.with.probability(i32, i32, double)
-
-define i32 @test1(i32 %val) nounwind {
- %expected = call i32 @llvm.expect.with.probability(i32 %val, i32 1, double 0.5)
- ret i32 %expected
-}