mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
Add a testcase that would have noticed the typo fixed in commit 166475.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1a5cc710ee
commit
747fcd58bc
@ -891,3 +891,12 @@ define double @test80([100 x double]* %p, i32 %i) {
|
||||
ret double %l
|
||||
; CHECK-NEXT: ret double
|
||||
}
|
||||
|
||||
define double @test81(double *%p, float %f) {
|
||||
%i = fptosi float %f to i64
|
||||
%q = bitcast double* %p to i8*
|
||||
%pp = getelementptr i8* %q, i64 %i
|
||||
%r = bitcast i8* %pp to double*
|
||||
%l = load double* %r
|
||||
ret double %l
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user