• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -verify-machineinstrs \
3; RUN:     -mcpu=pwr8 -mattr=+htm < %s | FileCheck %s
4
5define dso_local void @main() #0 {
6; CHECK-LABEL: main:
7; CHECK:       # %bb.0:
8; CHECK-NEXT:    li 3, 0
9; CHECK-NEXT:    tabortwci. 0, 3, 0
10; CHECK-NEXT:    mfocrf 3, 128
11; CHECK-NEXT:    srwi 3, 3, 28
12; CHECK-NEXT:    rlwinm. 3, 3, 31, 30, 31
13; CHECK-NEXT:    beqlr+ 0
14; CHECK-NEXT:  # %bb.1:
15  %1 = call i64 @llvm.ppc.ttest() #1
16  %2 = lshr i64 %1, 1
17  %3 = and i64 %2, 3
18  %4 = icmp eq i64 %3, 0
19  br i1 %4, label %5, label %6
20
215:                                                ; preds = %0
22  ret void
23
246:                                                ; preds = %0
25  unreachable
26}
27
28; Function Attrs: nounwind
29declare i64 @llvm.ppc.ttest() #1
30
31