summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/MIR/X86/branch-probabilities.mir
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/MIR/X86/branch-probabilities.mir')
-rw-r--r--llvm/test/CodeGen/MIR/X86/branch-probabilities.mir18
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/MIR/X86/branch-probabilities.mir b/llvm/test/CodeGen/MIR/X86/branch-probabilities.mir
new file mode 100644
index 00000000000..4aacd2d5cef
--- /dev/null
+++ b/llvm/test/CodeGen/MIR/X86/branch-probabilities.mir
@@ -0,0 +1,18 @@
+# RUN: llc -o - %s -mtriple=x86_64-- -run-pass=none | FileCheck %s
+---
+# Check that branch probabilities are printed correctly as hex numbers.
+# CHECK-LABEL: name: test
+# CHECK: bb.0:
+# CHECK-NEXT: successors: %bb.1(0x66666666), %bb.2(0x1999999a)
+name: test
+body: |
+ bb.0:
+ successors: %bb.1(4), %bb.2(1)
+ JE_1 %bb.2, implicit undef %eflags
+
+ bb.1:
+ NOOP
+
+ bb.2:
+ RETQ undef %eax
+...
OpenPOWER on IntegriCloud