Home | History | Annotate | Download | only in BPF
      1 ; RUN: llc < %s -march=bpfel -verify-machineinstrs -show-mc-encoding | FileCheck %s
      2 
      3 ; CHECK-LABEL: test_load_add_32
      4 ; CHECK: xadd32
      5 ; CHECK: encoding: [0xc3
      6 define void @test_load_add_32(i32* %p, i32 zeroext %v) {
      7 entry:
      8   atomicrmw add i32* %p, i32 %v seq_cst
      9   ret void
     10 }
     11 
     12 ; CHECK-LABEL: test_load_add_64
     13 ; CHECK: xadd64
     14 ; CHECK: encoding: [0xdb
     15 define void @test_load_add_64(i64* %p, i64 zeroext %v) {
     16 entry:
     17   atomicrmw add i64* %p, i64 %v seq_cst
     18   ret void
     19 }
     20