reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
; RUN: llc -O0 -mtriple=aarch64-apple-ios -o - %s | FileCheck %s

@g = global i16 0, align 2
declare void @bar(i32)

; Check that only one load is generated for an extending volatile load.
define hidden void @foo() {
; CHECK-NOT: ldrh
; CHECK: ldrsh
  %1 = load volatile i16, i16* @g, align 2
  %2 = sext i16 %1 to i32
  call void @bar(i32 %2)
  ret void
}