mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-25 19:29:53 +00:00
Summary: -march=bpf -> host endian -march=bpf_le -> little endian -match=bpf_be -> big endian Test Plan: v1 was tested by IBM s390 guys and appears to be working there. It bit rots too fast here. Reviewers: chandlerc, tstellarAMD Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10177 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239071 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
467 B
LLVM
20 lines
467 B
LLVM
; RUN: llc < %s -march=bpf_le -verify-machineinstrs -show-mc-encoding | FileCheck %s
|
|
|
|
; CHECK-LABEL: test_load_add_32
|
|
; CHECK: xadd32
|
|
; CHECK: encoding: [0xc3
|
|
define void @test_load_add_32(i32* %p, i32 zeroext %v) {
|
|
entry:
|
|
atomicrmw add i32* %p, i32 %v seq_cst
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: test_load_add_64
|
|
; CHECK: xadd64
|
|
; CHECK: encoding: [0xdb
|
|
define void @test_load_add_64(i64* %p, i64 zeroext %v) {
|
|
entry:
|
|
atomicrmw add i64* %p, i64 %v seq_cst
|
|
ret void
|
|
}
|