Displaying 20 results from an estimated 50 matches for "offset2".
Did you mean:
offset
2019 Jul 23
2
[RFC] A new multidimensional array indexing intrinsic
...sh, or miscompile when encountering such a modified
GEP. I think it is unfeasible to change all code to properly handle
the new form at once.
2.
Johannes' interpretation is to add some kind of metadata to GEPs, in
addition to the naive computation, such as:
%offset1= mul i64. %i, %n
%offset2 = add i64, %j, %offset1
%1 = getelementptr double, double* %A, inrange i64 %offset2 [
"multi-dim"(i64 %n) ]
This was not obvious to me. The code above uses operand bundle syntax.
During our discussing for this RFC we briefly discussed metadata,
which unfortunately do not allow refere...
2004 Sep 17
1
Confused about specifying plot colors as RGB values
...e able
to specify an array of rgb values for the 'col' parameter.
colnames.col <- c("black", "red", "blue", "green")
colnames.rgb <- apply(as.matrix(colnames.col), 1, col2rgb)
dimnames(colnames.rgb)[[2]] <- colnames.col
baseline <- 1:32
offset2 <- 2*baseline
offset3 <- 3*baseline
offset4 <- 4*baseline
offsets <- cbind(offset2, offset3, offset4)
# Produces expected result
X11()
matplot(baseline, col = colnames.col[1], type = "l")
matlines(offsets, col = colnames.col[-1])
# Displays a ??yellow?? line
X11()
matplot(ba...
2018 Aug 01
1
[PATCH nbdkit] tests: Cancel trap in cleanup function to avoid recursive traps.
...giving the value of
$status which can be useful.
---
tests/test-blocksize.sh | 2 ++
tests/test-cache.sh | 2 ++
tests/test-cow.sh | 2 ++
tests/test-fua.sh | 2 ++
tests/test-log.sh | 2 ++
tests/test-nozero.sh | 2 ++
tests/test-offset2.sh | 2 ++
tests/test-pattern-largest.sh | 2 ++
tests/test-pattern.sh | 2 ++
tests/test-single.sh | 2 ++
tests/test-tls-psk.sh | 2 ++
tests/test-tls.sh | 2 ++
tests/test-zero.sh | 13 ++++++++++++-
13 files changed, 36 insertions(+)...
2018 Sep 13
0
[PATCH v2 nbdkit 5/5] tests: Add a helper function which waits for nbdkit to start up.
...| 23 ++----------
tests/test-log.sh | 23 ++----------
tests/test-memory-largest-for-qemu.sh | 30 ++-------------
tests/test-memory-largest.sh | 31 ++-------------
tests/test-nozero.sh | 48 ++++--------------------
tests/test-offset2.sh | 27 +------------
tests/test-parallel-nbd.sh | 19 ++--------
tests/test-pattern-largest-for-qemu.sh | 27 +------------
tests/test-pattern-largest.sh | 27 +------------
tests/test-pattern.sh | 27 +------------
tests/test-start.sh...
2018 Sep 11
0
[PATCH nbdkit 4/4] tests: Add a helper function which waits for nbdkit to start up.
...test-ip.sh | 17 ++--------
tests/test-log.sh | 16 ++-------
tests/test-memory-largest-for-qemu.sh | 19 ++---------
tests/test-memory-largest.sh | 20 ++----------
tests/test-nozero.sh | 41 ++++++++---------------
tests/test-offset2.sh | 16 ++-------
tests/test-parallel-nbd.sh | 15 ++-------
tests/test-pattern-largest-for-qemu.sh | 16 ++-------
tests/test-pattern-largest.sh | 16 ++-------
tests/test-pattern.sh | 16 ++-------
tests/test-start.sh | 17...
2018 Sep 13
8
[PATCH v2 nbdkit 0/5] tests: Move common functions into tests/functions.sh
v1 was here:
https://www.redhat.com/archives/libguestfs/2018-September/msg00057.html
v2:
- Fix tab vs spaces in configure.ac.
- To generate list of plugins, use printf instead of xargs.
- Use 'source ./functions.sh' instead of 'source functions'.
- functions.sh: Consistent quoting in foreach_plugin function.
- functions.sh: Change the contract of start_nbdkit so it
2019 Jan 23
0
[PATCH v2 nbdkit] tests: Add generic ‘requires’ function for test prerequisites.
...+-----
tests/test-error100.sh | 6 +-----
tests/test-full.sh | 8 ++------
tests/test-ip.sh | 21 ++++++---------------
tests/test-memory-largest-for-qemu.sh | 8 ++------
tests/test-memory-largest.sh | 8 ++------
tests/test-offset2.sh | 8 ++------
tests/test-parallel-file.sh | 10 ++--------
tests/test-parallel-nbd.sh | 10 ++--------
tests/test-partition1.sh | 22 ++++------------------
tests/test-partition2.sh | 6 +-----
tests/test-partitioning1.sh...
2018 Jun 11
4
One more No-alias case on Alias analysis
...lues.
AliasSet[0x53d8070, 2] may alias, Mod Pointers: (i8* %arrayidx,
1), (i8* %arrayidx2, 1)
As you can see on above code snippet, the 'a' and 'b' are not aliased. I
think if we have following offset form, we can say No-alias between them.
offset1 = odd_number - index
offset2 = index
I have implemented simple code for it and the output is as following:
Alias sets for function 'test':
Alias Set Tracker: 2 alias sets for 2 pointer values.
AliasSet[0x541a070, 1] must alias, Mod Pointers: (i8* %arrayidx, 1)
AliasSet[0x541cc00, 1] must alias, Mod ...
2019 Jan 23
2
[PATCH v2 nbdkit] tests: Add generic requires.
v1 was here:
https://www.redhat.com/archives/libguestfs/2019-January/thread.html#00198
For v2 I changed most existing prerequisite tests to use the new
mechanism.
I only changed simple tests. There are a few more complex tests that
don't fit the “requires model” and those are not changed.
I normalized qemu-io/qemu-img testing to always use the --version
flag, where previously we used a mix
2018 Sep 13
0
[PATCH v2 nbdkit 4/5] tests: Use a generic cleanup mechanism instead of explicit trap.
...9 ++-------
tests/test-fua.sh | 9 ++-------
tests/test-log.sh | 9 ++-------
tests/test-memory-largest-for-qemu.sh | 9 ++-------
tests/test-memory-largest.sh | 9 ++-------
tests/test-nozero.sh | 9 ++-------
tests/test-offset2.sh | 9 ++-------
tests/test-parallel-file.sh | 4 +++-
tests/test-parallel-nbd.sh | 4 +++-
tests/test-pattern-largest-for-qemu.sh | 9 ++-------
tests/test-pattern-largest.sh | 9 ++-------
tests/test-pattern.sh | 9 ++-------...
2013 Nov 23
2
[LLVMdev] GVN fails with bitcasts
Hi,
i have the following code:
define internal %"struct.dexter::ConditionConstant"*
@_ZN6dexter18BinaryConditionAdd8evaluateEv5(%"class.dexter::BinaryConditionAdd"*)
{
entry:
%1 = getelementptr inbounds %"class.dexter::BinaryConditionAdd"* %0, i32
0, i32 0, i32 1
%2 = load %"class.dexter::BaseCondition"** %1, align 8
%3 = bitcast
2006 Dec 19
3
[LLVMdev] alias-aware scheduling
.../// isAlias - Return true if there is any possibility that the two addresses
+ /// overlap.
+ bool isAlias(SDOperand Ptr1, int64_t Size1,
+ const Value *SrcValue1, int SrcValueOffset1,
+ SDOperand Ptr2, int64_t Size2,
+ const Value *SrcValue2, int SrcValueOffset2)
+ {
+ // If they are the same then they must be aliases.
+ if (Ptr1 == Ptr2) return true;
+
+ // Gather base node and offset information.
+ SDOperand Base1, Base2;
+ int64_t Offset1, Offset2;
+ bool KnownBase1 = FindBaseOffset(Ptr1, Base1, Offset1);
+ bool KnownBase2 = Find...
2018 Aug 12
0
[PATCH nbdkit 08/10] freebsd: In scripts use 'env bash' instead of '/bin/bash'.
...ua.sh | 2 +-
tests/test-help-plugin.sh | 2 +-
tests/test-help.sh | 2 +-
tests/test-ip.sh | 2 +-
tests/test-layers.sh | 2 +-
tests/test-log.sh | 2 +-
tests/test-nozero.sh | 2 +-
tests/test-offset2.sh | 2 +-
tests/test-parallel-file.sh | 2 +-
tests/test-parallel-nbd.sh | 2 +-
tests/test-pattern-largest.sh | 2 +-
tests/test-pattern.sh | 2 +-
tests/test-python-exception.sh | 2 +-
tests/test-random-sock.sh | 2 +-
tests/test-sheban...
2018 Sep 11
7
[PATCH nbdkit 0/4] tests: Move common functions into tests/functions.sh
Combine much common code into tests/functions.sh.
Patch 1: Preparation for patch 3.
Patch 2: Fix a long-standing bug in how man pages links are generated.
Patch 3: Common code for iterating a test function over every plugin.
Patch 4: Common code for starting nbdkit in a test and waiting for the
PID file to appear. This is the largest and most complex of
the patches but is
2014 Mar 13
2
[LLVMdev] MergeFunctions: reduce complexity to O(log(N))
...nt cmpGEP(const GEPOperator *GEP1, const GEPOperator *GEP2);
> + int cmpGEP(const GetElementPtrInst *GEP1,
> + const GetElementPtrInst *GEP2) {
>
> Const members?
>
> + unsigned BitWidth = DL ? DL->getPointerSizeInBits(AS1) : 1;
> + APInt Offset1(BitWidth, 0), Offset2(BitWidth, 0);
> + if (DL &&
> + (GEP1->accumulateConstantOffset(*DL, Offset1) &&
> + GEP2->accumulateConstantOffset(*DL, Offset2)))
> + return cmpAPInt(Offset1, Offset2);
>
> I think you should put this under if (DL) { /* declare Offset1, Offse...
2019 Jul 22
3
[RFC] A new multidimensional array indexing intrinsic
Am Mo., 22. Juli 2019 um 10:50 Uhr schrieb Doerfert, Johannes
<jdoerfert at anl.gov>:
> Why introduce a new intrinsic (family)? It seems that would require us
> to support GEPs and GEP + "multi-dim" semantics in various places. What is
> the benefit over a GEP extension?
Adding an intrinsic is easier than adding or extending an existing
instruction, as suggested by
2009 Jun 10
1
Weird behavior in receive_data function
Dear List,
I'm trying to get diff/removed data and it's offset out. So I write a
functions in receive_data. When I run backup, I found there is a weird
behavior which I don't understand.
i = recv_token(f_in, &data) will receive (i = -1, offset2 = 0) some
where in the middle of the transfer procedure. That's to say, it's going
to transfer the first data block from sender, but I have been
transferring almost half of the file. I noticed it was 92nd block
(sum.blength = 700) .
Hope I have a clear explanation. I'm really confused...
2018 Jun 12
2
One more No-alias case on Alias analysis
...%arrayidx, 1), (i8* %arrayidx2, 1)
>>
>> As you can see on above code snippet, the 'a' and 'b' are not
>> aliased. I think if we have following offset form, we can say
>> No-alias between them.
>>
>> offset1 = odd_number - index
>>
>> offset2 = index
>>
>> I have implemented simple code for it and the output is as following:
>>
>> Alias sets for function 'test':
>> Alias Set Tracker: 2 alias sets for 2 pointer values.
>> AliasSet[0x541a070, 1] must alias, Mod Pointers: (i8*
>> %a...
2003 Mar 30
1
[RFC][patch] dynamic rolling block and sum sizes II
...t);
+ write_sum_head(f_out, NULL);
return;
}
--- receiver.c Sat Mar 29 11:11:30 2003
+++ receiver.c Sat Mar 29 12:16:23 2003
@@ -230,7 +230,8 @@
OFF_T total_size)
{
int i;
- unsigned int n,remainder,len,count;
+ struct sum_struct sum;
+ unsigned int len;
OFF_T offset = 0;
OFF_T offset2;
char *data;
@@ -238,9 +239,7 @@
static char file_sum2[MD4_SUM_LENGTH];
char *map=NULL;
- count = read_int(f_in);
- n = read_int(f_in);
- remainder = read_int(f_in);
+ read_sum_head(f_in, &sum);
sum_init();
@@ -270,10 +269,10 @@
}
i = -(i+1);
- offset2 = i*(OFF_T)n;
-...
2019 Jan 21
0
[PATCH nbdkit v2 3/4] tests: Implement a better nbdkit-partition-filter test.
...e test suite:
- qemu-io (usually shipped with qemu)
+ - sfdisk (from util-linux)
+
- socat
- ss (from iproute package)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 27abbaf..007203f 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -79,6 +79,7 @@ EXTRA_DIST = \
test-offset2.sh \
test-parallel-file.sh \
test-parallel-nbd.sh \
+ test-partition.sh \
test-partitioning1.sh \
test-partitioning2.sh \
test-partitioning3.sh \
@@ -792,11 +793,7 @@ test_offset_LDADD = libtest.la $(LIBGUESTFS_LIBS)
TESTS += test-offset2.sh
# partition filter test.
-LIBGUESTFS_TESTS...