mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Add addrspacecast instruction.
Patch by Michele Scandale! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194760 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -9,7 +9,7 @@ target triple = "x86_64-pc-win32"
|
||||
define void @func(%myStruct addrspace(1)* nocapture %p) nounwind {
|
||||
ST:
|
||||
%A = getelementptr inbounds %myStruct addrspace(1)* %p, i64 0
|
||||
%B = bitcast %myStruct addrspace(1)* %A to %myStruct*
|
||||
%B = addrspacecast %myStruct addrspace(1)* %A to %myStruct*
|
||||
%C = getelementptr inbounds %myStruct* %B, i32 0, i32 1
|
||||
%D = getelementptr inbounds [3 x float]* %C, i32 0, i32 2
|
||||
%E = load float* %D, align 4
|
||||
|
Reference in New Issue
Block a user