llvm/llvm/test/CodeGen/X86/i1narrowfail.ll

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck %s

define void @foo(ptr %ptr) {
; CHECK-LABEL: foo:
; CHECK:       ## %bb.0:
; CHECK-NEXT:    orb $16, (%rdi)
; CHECK-NEXT:    retq
  %r11 = load i64, ptr %ptr, align 8
  %r12 = or i64 16, %r11
  store i64 %r12, ptr %ptr, align 8
  ret void
}

define void @foo_noalign(ptr %ptr) {
; CHECK-LABEL: foo_noalign:
; CHECK:       ## %bb.0:
; CHECK-NEXT:    orb $16, (%rdi)
; CHECK-NEXT:    retq
  %r11 = load i64, ptr %ptr, align 1
  %r12 = or i64 16, %r11
  store i64 %r12, ptr %ptr, align 1
  ret void
}