mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
f281101580
This patch is in a series of patches to provide builtins for compatibility with the XL compiler. This patch add the builtin and emit target independent code for __cmpb. Reviewed By: nemanjai, #powerpc Differential revision: https://reviews.llvm.org/D105194
17 lines
666 B
LLVM
17 lines
666 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-unknown -mcpu=pwr7 < %s | FileCheck %s
|
|
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-unknown -mcpu=pwr8 < %s | FileCheck %s
|
|
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-aix -mcpu=pwr7 < %s | FileCheck %s
|
|
|
|
define i64 @test_cmpb(i64 %a, i64 %b) {
|
|
; CHECK-LABEL: test_cmpb:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: cmpb 3, 3, 4
|
|
; CHECK-NEXT: blr
|
|
entry:
|
|
%cmpb = tail call i64 @llvm.ppc.cmpb.i64.i64.i64(i64 %a, i64 %b)
|
|
ret i64 %cmpb
|
|
}
|
|
|
|
declare i64 @llvm.ppc.cmpb.i64.i64.i64(i64, i64)
|