Compiler projects using llvm
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=m68k-linux < %s -verify-machineinstrs | FileCheck %s

define i32 @test1(i32 %x) {
; CHECK-LABEL: test1:
; CHECK:         .cfi_startproc
; CHECK-NEXT:  ; %bb.0:
; CHECK-NEXT:    move.l (4,%sp), %d1
; CHECK-NEXT:    eori.l #31, %d1
; CHECK-NEXT:    move.l #32, %d0
; CHECK-NEXT:    sub.l %d1, %d0
; CHECK-NEXT:    rts
  %xor = xor i32 %x, 31
  %sub = sub i32 32, %xor
  ret i32 %sub
}