1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -verify-machineinstrs -mtriple powerpc64le -mcpu=pwr9 | FileCheck %s 3 4define i64 @raw() { 5; CHECK-LABEL: raw: 6; CHECK: # %bb.0: # %entry 7; CHECK-NEXT: darn 3, 2 8; CHECK-NEXT: blr 9entry: 10 %0 = call i64 @llvm.ppc.darnraw() 11 ret i64 %0 12} 13 14define i64 @conditioned() { 15; CHECK-LABEL: conditioned: 16; CHECK: # %bb.0: # %entry 17; CHECK-NEXT: darn 3, 1 18; CHECK-NEXT: blr 19entry: 20 %0 = call i64 @llvm.ppc.darn() 21 ret i64 %0 22} 23 24define signext i32 @word() { 25; CHECK-LABEL: word: 26; CHECK: # %bb.0: # %entry 27; CHECK-NEXT: darn 3, 0 28; CHECK-NEXT: extsw 3, 3 29; CHECK-NEXT: blr 30entry: 31 %0 = call i32 @llvm.ppc.darn32() 32 ret i32 %0 33} 34 35declare i64 @llvm.ppc.darn() 36declare i64 @llvm.ppc.darnraw() 37declare i32 @llvm.ppc.darn32() 38