mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-12 09:41:26 +00:00
For PR1336:
Upgrade the intrinsic to its new form. llvm-svn: 36108
This commit is contained in:
parent
c940d0761c
commit
4b4055a1ab
@ -5,13 +5,12 @@
|
||||
; everything up. :( Test that this does not happen anymore.
|
||||
;
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=c | not grep _memcpy
|
||||
; XFAIL: *
|
||||
|
||||
declare void %llvm.memcpy(sbyte*, sbyte*, uint,uint)
|
||||
declare void %llvm.memcpy.i32(sbyte*, sbyte*, uint,uint)
|
||||
declare float* %memcpy(int*, uint,int)
|
||||
|
||||
int %test(sbyte *%A, sbyte* %B, int* %C) {
|
||||
call float* %memcpy(int* %C, uint 4, int 17)
|
||||
call void %llvm.memcpy(sbyte* %A, sbyte* %B, uint 123, uint 14)
|
||||
call void %llvm.memcpy.i32(sbyte* %A, sbyte* %B, uint 123, uint 14)
|
||||
ret int 7
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user