mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-30 15:45:26 +00:00
4572ce85b0
llvm-svn: 33296
15 lines
359 B
LLVM
15 lines
359 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | llvm-as
|
|
|
|
; Ensure that the asm writer emits types before both operands of the
|
|
; store, even though they can be the same.
|
|
|
|
%RecTy = type %RecTy*
|
|
implementation
|
|
|
|
void %foo() {
|
|
%A = malloc %RecTy
|
|
%B = malloc %RecTy
|
|
store %RecTy %B, %RecTy %A ;; Both ops are the same
|
|
ret void
|
|
}
|